From 36612a304599827304f3dcd2a7ad00a03af3da4b Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 5 May 2023 03:46:53 +0300 Subject: [PATCH] exact same as last commit --- files/routes/notifications.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index aa334b624..ba2ae081c 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -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)