From 0528c9e30aac17fe6d7726485136c4995c05b1ec Mon Sep 17 00:00:00 2001 From: Jan Szejko Date: Thu, 22 Feb 2018 10:16:58 +0100 Subject: [PATCH] clearer info in checkintegrity --- src/catalogue/management/commands/checkintegrity.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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 -- 2.20.1