fsd
This commit is contained in:
parent
4393a14ccc
commit
8345cc02e0
1 changed files with 2 additions and 0 deletions
|
@ -748,8 +748,10 @@ 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]
|
||||||
|
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.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