Mercurial > public > sg101
diff gpp/forums/unread.py @ 148:35a0e6345815
Fix bug in the forums unread logic.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Sun, 13 Dec 2009 21:57:34 +0000 |
parents | 535d02d1c017 |
children | cf9f9d4c4d54 |
line wrap: on
line diff
--- a/gpp/forums/unread.py Sun Dec 13 08:11:16 2009 +0000 +++ b/gpp/forums/unread.py Sun Dec 13 21:57:34 2009 +0000 @@ -72,7 +72,8 @@ TopicLastVisit.objects.filter(user=user, topic__forum=forum, last_visit__lt=min_date).delete() - topics = Topic.objects.filter(creation_date__gt=flv.begin_date) + topics = Topic.objects.filter(forum=forum, + creation_date__gt=flv.begin_date) tracked_topics = TopicLastVisit.objects.filter(user=user, topic__forum=forum, last_visit__gt=flv.begin_date)