Skip to content

Commit 9a8101d

Browse files
committedMay 23, 2015
fix #1747
1 parent 78dbce2 commit 9a8101d

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed
 

Diff for: ‎CHANGES.txt

+1
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Features
1414
Bugfixes
1515
--------
1616

17+
* Avoid some rebuild loops (Issue #1747)
1718
* Better error if two posts/pages output conflict (Issue #1749)
1819
* Scanning of posts refactored out of core (Issue #1700)
1920
* github_deploy records lastdeploy timestamp like regular deploy

Diff for: ‎nikola/post.py

+5-1
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,11 @@ def __repr__(self):
235235
m = hashlib.md5()
236236
# source_path modification date (to avoid reading it)
237237
m.update(utils.unicode_str(os.stat(self.source_path).st_mtime).encode('utf-8'))
238-
m.update(utils.unicode_str(json.dumps(self.meta, cls=utils.CustomEncoder, sort_keys=True)).encode('utf-8'))
238+
clean_meta = {}
239+
for k, v in self.meta.items():
240+
if v:
241+
clean_meta[k] = v
242+
m.update(utils.unicode_str(json.dumps(clean_meta, cls=utils.CustomEncoder, sort_keys=True)).encode('utf-8'))
239243
return '<Post: {0} {1}>'.format(self.source_path, m.hexdigest())
240244

241245
def _has_pretty_url(self, lang):

0 commit comments

Comments
 (0)
Please sign in to comment.