From 939861e1a0470d919d024d8577cc3b181e44f230 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 8 Jul 2022 21:10:01 +0200 Subject: [PATCH] fix 500 error --- files/routes/notifications.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/files/routes/notifications.py b/files/routes/notifications.py index 53d58ef5d..426124250 100644 --- a/files/routes/notifications.py +++ b/files/routes/notifications.py @@ -89,10 +89,10 @@ def notifications_posts(v): listing = [x[0] for x in g.db.query(Submission.id).filter( or_( - Submission.author_id.in_(self.followed_users), - Submission.sub.in_(self.followed_subs) + Submission.author_id.in_(v.followed_users), + Submission.sub.in_(v.followed_subs) ), - Submission.created_utc > self.last_viewed_post_notifs, + Submission.created_utc > v.last_viewed_post_notifs, Submission.deleted_utc == 0, Submission.is_banned == False, Submission.private == False