exact same as last commit

pull/146/head
Aevann 2023-05-05 03:46:53 +03:00
parent f69ba41ca8
commit 36612a3045
1 changed files with 1 additions and 1 deletions

View File

@ -308,7 +308,7 @@ def notifications(v:User):
Comment.is_banned != False,
Comment.deleted_utc != 0,
)
).options(load_only(Notification.id)).all()
).options(load_only(Notification.comment_id)).all()
for n in unread_and_inaccessible:
n.read = True
g.db.add(n)