fnp
/
wolnelektury.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(from parent 1:
fdb20ca
)
clearer info in checkintegrity
author
Jan Szejko
<janek37@gmail.com>
Thu, 22 Feb 2018 09:16:58 +0000
(10:16 +0100)
committer
Jan Szejko
<janek37@gmail.com>
Thu, 22 Feb 2018 09:16:58 +0000
(10:16 +0100)
src/catalogue/management/commands/checkintegrity.py
patch
|
blob
|
history
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
- 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