Browse Source

Track reads correctly.

Ralfp 12 years ago
parent
commit
8319002beb
1 changed files with 3 additions and 0 deletions
  1. 3 0
      misago/readstracker/trackers.py

+ 3 - 0
misago/readstracker/trackers.py

@@ -19,6 +19,9 @@ class ForumsTracker(object):
         if not self.user.is_authenticated() or not forum.last_thread_date:
         if not self.user.is_authenticated() or not forum.last_thread_date:
             return True
             return True
         try:
         try:
+            print '===='
+            print forum.last_thread_date
+            print self.forums[forum.pk]['cleared']
             return forum.last_thread_date <= self.cutoff or forum.last_thread_date <= self.forums[forum.pk]['cleared']
             return forum.last_thread_date <= self.cutoff or forum.last_thread_date <= self.forums[forum.pk]['cleared']
         except KeyError:
         except KeyError:
             return False
             return False