From 4ff2a55ed2fd942c2100df3b4afab37ef82efdd4 Mon Sep 17 00:00:00 2001 From: justcool393 Date: Sun, 30 Oct 2022 15:36:30 -0500 Subject: [PATCH] fix prev --- files/routes/comments.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index e68d04a165..5cb17971bd 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -297,7 +297,7 @@ def comment(v): notify_users = NOTIFY_USERS(body, v) if c.level == 1: - subscribers = g.db.query(Subscription.user_id).filter(Subscription.submission_id == c.parent_post.id, Subscription.user_id != v.id).all() + subscribers = g.db.query(Subscription.user_id).filter(Subscription.submission_id == parent_post.id, Subscription.user_id != v.id).all() for x in subscribers: notify_users.add(x[0])