fds
This commit is contained in:
parent
920de902e8
commit
2c66f596fd
1 changed files with 1 additions and 3 deletions
|
@ -747,11 +747,9 @@ def messagereply(v):
|
||||||
|
|
||||||
|
|
||||||
if c.top_comment.sentto == 2:
|
if c.top_comment.sentto == 2:
|
||||||
ids = [x.id for x in c.top_comment.replies]
|
ids = [x.id for x in c.top_comment.replies] + c.top_comment.id
|
||||||
print(ids, flush=True)
|
|
||||||
notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids))
|
notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids))
|
||||||
for n in notifications:
|
for n in notifications:
|
||||||
print(n.comment_id, flush=True)
|
|
||||||
g.db.delete(n)
|
g.db.delete(n)
|
||||||
|
|
||||||
admins = g.db.query(User).filter(User.admin_level > 2, User.id != v.id).all()
|
admins = g.db.query(User).filter(User.admin_level > 2, User.id != v.id).all()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue