Skip to content
Permalink
Browse files

fix #1747

  • Loading branch information
ralsina committed May 23, 2015
1 parent 78dbce2 commit 9a8101de96112733f1b5fae213055dde73ee9092
Showing with 6 additions and 1 deletion.
  1. +1 −0 CHANGES.txt
  2. +5 −1 nikola/post.py
@@ -14,6 +14,7 @@ Features
Bugfixes
--------

* Avoid some rebuild loops (Issue #1747)
* Better error if two posts/pages output conflict (Issue #1749)
* Scanning of posts refactored out of core (Issue #1700)
* github_deploy records lastdeploy timestamp like regular deploy
@@ -235,7 +235,11 @@ def __repr__(self):
m = hashlib.md5()
# source_path modification date (to avoid reading it)
m.update(utils.unicode_str(os.stat(self.source_path).st_mtime).encode('utf-8'))
m.update(utils.unicode_str(json.dumps(self.meta, cls=utils.CustomEncoder, sort_keys=True)).encode('utf-8'))
clean_meta = {}
for k, v in self.meta.items():
if v:
clean_meta[k] = v
m.update(utils.unicode_str(json.dumps(clean_meta, cls=utils.CustomEncoder, sort_keys=True)).encode('utf-8'))
return '<Post: {0} {1}>'.format(self.source_path, m.hexdigest())

def _has_pretty_url(self, lang):

0 comments on commit 9a8101d

Please sign in to comment.
You can’t perform that action at this time.