forked from rDrama/rDrama
master
parent
d0f2db54d0
commit
94bf22e529
|
@ -40,8 +40,6 @@ def notifications(v):
|
||||||
elif not x.read:
|
elif not x.read:
|
||||||
c.unread = True
|
c.unread = True
|
||||||
notifs.append({'id': x.id, 'read': True})
|
notifs.append({'id': x.id, 'read': True})
|
||||||
x.read = True
|
|
||||||
g.db.add(x)
|
|
||||||
comments.append(c)
|
comments.append(c)
|
||||||
|
|
||||||
g.db.bulk_update_mappings(User, notifs)
|
g.db.bulk_update_mappings(User, notifs)
|
||||||
|
|
Loading…
Reference in New Issue