]> git.parisson.com Git - teleforma.git/commitdiff
try bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 17:48:32 +0000 (19:48 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Sun, 20 Jul 2014 17:48:32 +0000 (19:48 +0200)
teleforma/views/pro.py

index 59eb035b0ffdc0dba912d75e779ce0747b1ba7d0..dac1b1f447ca37f3a4c545c81f9ff70da56f419e 100644 (file)
@@ -106,7 +106,7 @@ def set_revision(user, seminar):
     if revisions:
         r = revisions[0]
         now = datetime.datetime.now()
-        if (r.date - now) > datetime.timedelta(seconds = 5):
+        if (now - r.date) > datetime.timedelta(seconds = 5):
             r.date_modified = now
     else:
         r = SeminarRevision(seminar=seminar, user=user)