From 3be895c401409b1c5062fca485a3d8bf305ea53e Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 28 Feb 2022 22:23:54 +0200 Subject: [PATCH] snappy --- files/routes/posts.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/posts.py b/files/routes/posts.py index e692f30ab..f30414569 100644 --- a/files/routes/posts.py +++ b/files/routes/posts.py @@ -1275,7 +1275,7 @@ def submit_post(v, sub=None): n = Notification(comment_id=c_jannied.id, user_id=v.id) g.db.add(n) - if not (post.sub and g.db.query(Exile.user_id).filter_by(user_id=SNAPPY_ID, sub=post.sub)): + if not (post.sub and g.db.query(Exile.user_id).filter_by(user_id=SNAPPY_ID, sub=post.sub).one_or_none()): if post.sub == 'dankchristianmemes': body = random.choice(christian_emojis) elif v.id == CARP_ID: