fnp
/
wolnelektury.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
disable search
[wolnelektury.git]
/
src
/
catalogue
/
management
/
commands
/
checkintegrity.py
diff --git
a/src/catalogue/management/commands/checkintegrity.py
b/src/catalogue/management/commands/checkintegrity.py
index
6d8a955
..
6f090bb
100644
(file)
--- 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
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
print "To resolve: republish parent book."
print