Mercurial > public > sg101
comparison gpp/forums/unread.py @ 420:c06d836c8b84
Fixing #210; forums unread status problems. Use the topic update_date instead of creation_date when selecting topics inside the tracked window.
author | Brian Neal <bgneal@gmail.com> |
---|---|
date | Wed, 20 Apr 2011 23:42:10 +0000 |
parents | 7e0997b08b50 |
children |
comparison
equal
deleted
inserted
replaced
419:fc2feaa98c58 | 420:c06d836c8b84 |
---|---|
81 flv.save() | 81 flv.save() |
82 TopicLastVisit.objects.filter(user=user, topic__forum=forum, | 82 TopicLastVisit.objects.filter(user=user, topic__forum=forum, |
83 last_visit__lt=min_date).delete() | 83 last_visit__lt=min_date).delete() |
84 | 84 |
85 topics = Topic.objects.filter(forum=forum, | 85 topics = Topic.objects.filter(forum=forum, |
86 creation_date__gt=flv.begin_date) | 86 update_date__gt=flv.begin_date) |
87 tracked_topics = TopicLastVisit.objects.filter( | 87 tracked_topics = TopicLastVisit.objects.filter( |
88 user=user, | 88 user=user, |
89 topic__forum=forum, | 89 topic__forum=forum, |
90 last_visit__gt=flv.begin_date).select_related('topic') | 90 last_visit__gt=flv.begin_date).select_related('topic') |
91 | 91 |