Switch to unified view
a/Allura/allura/lib/helpers.py | b/Allura/allura/lib/helpers.py | ||
---|---|---|---|
... |
... |
||
423 | user = c.user |
423 | user = c.user |
424 | mbox = M.Mailbox.query.get(user_id=user._id, is_flash=True) |
424 | mbox = M.Mailbox.query.get(user_id=user._id, is_flash=True) |
425 | if mbox: |
425 | if mbox: |
426 | notifications = M.Notification.query.find(dict(_id={'$in':mbox.queue})) |
426 | notifications = M.Notification.query.find(dict(_id={'$in':mbox.queue})) |
427 | mbox.queue = [] |
427 | mbox.queue = [] |
428 | mbox.queue_empty = True |
||
428 | for n in notifications: |
429 | for n in notifications: |
429 | M.Notification.query.remove({'_id': n._id}) # clean it up so it doesn't hang around |
430 | M.Notification.query.remove({'_id': n._id}) # clean it up so it doesn't hang around |
430 | yield n |
431 | yield n |
431 | 432 | ||
432 | 433 |