X-Git-Url: https://git.mdrn.pl/wolnelektury.git/blobdiff_plain/b2d342589a7889a3b096e7192453d53bd28eed7d..2983d583c9de4c33ed73d6c06d9d6eb54b30f15e:/src/catalogue/management/commands/checkintegrity.py diff --git a/src/catalogue/management/commands/checkintegrity.py b/src/catalogue/management/commands/checkintegrity.py index 6d8a9559a..6f090bb8c 100644 --- a/src/catalogue/management/commands/checkintegrity.py +++ b/src/catalogue/management/commands/checkintegrity.py @@ -38,8 +38,10 @@ class Command(BaseCommand): if should_be != is_now: if verbose: print "ERROR! Wrong children for book:", book.slug - print "Is: ", is_now - print "Should be:", should_be + # print "Is: ", is_now + # print "Should be:", should_be + from difflib import ndiff + print '\n'.join(ndiff(is_now, should_be)) print "To resolve: republish parent book." print