changeset 1411:2e939e798a47

Fix for wrong diff'ing of bookmarked pages; resolves #206.
author Ivan Gavrilov <ivan.wntr@gmail.com>
date Sat, 07 Jul 2012 21:32:23 +0400
parents 5e33131770bc
children caa408751799
files MoinMoin/apps/frontend/views.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/MoinMoin/apps/frontend/views.py	Sat Jul 07 18:31:04 2012 +0200
+++ b/MoinMoin/apps/frontend/views.py	Sat Jul 07 21:32:23 2012 +0400
@@ -1576,7 +1576,7 @@
         # try to find the latest rev1 before bookmark <date>
         revs = sorted([(rev.meta[MTIME], rev.revid) for rev in item.iter_revs()], reverse=True)
         for mtime, revid in revs:
-            if mtime <= bookmark_time:
+            if mtime <= int(bookmark_time):
                 rev1 = revid
                 break
         else: