Commit bb2e0c59 authored by Luc Saffre's avatar Luc Saffre
Browse files

fixed clear_seen_messages()

parent 3a950e8b
......@@ -575,7 +575,7 @@ def clear_seen_messages():
remove_after = 24
Message = rt.models.notify.Message
qs = Message.objects.filter(
seen__lt=timezone.now() - timedelta(hours=remove_after))
created__lt=timezone.now() - timedelta(hours=remove_after))
if False: # TODO: make this configurable
qs = qs.filter(seen__isnull=False)
if qs.count() > 0:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment