remotes/1693045480750635534/spooky-22
Aevann1 2022-04-29 16:47:03 +02:00
parent 6856eb0dd0
commit 4ee8d15e2a
1 changed files with 1 additions and 3 deletions

View File

@ -747,11 +747,9 @@ def messagereply(v):
if c.top_comment.sentto == 2:
ids = [x.id for x in c.top_comment.replies]
print(ids, flush=True)
ids = [x.id for x in c.top_comment.replies] + c.top_comment.id
notifications = g.db.query(Notification).filter(Notification.comment_id.in_(ids))
for n in notifications:
print(n.comment_id, flush=True)
g.db.delete(n)
admins = g.db.query(User).filter(User.admin_level > 2, User.id != v.id).all()