From ff4f423c2ca060e401102e0a5165b4fb71933c52 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Wed, 13 Jul 2022 21:17:17 +0200 Subject: [PATCH] testing on deux --- files/routes/comments.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/files/routes/comments.py b/files/routes/comments.py index a418f7393..954492c8a 100644 --- a/files/routes/comments.py +++ b/files/routes/comments.py @@ -546,10 +546,12 @@ def api_comment(v): zozbot.coins += 3 g.db.add(zozbot) - + if v.id == 1: print('wtf', flush=True) if not v.shadowbanned: + if v.id == 1: print('nigga', flush=True) notify_users = NOTIFY_USERS(body, v) - + if v.id == 1: print(notify_users, flush=True) + if c.level == 1: subscribers = g.db.query(Subscription.user_id).filter(Subscription.submission_id == c.parent_submission, Subscription.user_id != v.id).all() @@ -559,8 +561,9 @@ def api_comment(v): if parent.author.id != v.id: notify_users.add(parent.author.id) + if v.id == 1: print(notify_users-bots, flush=True) + for x in notify_users-bots: - if v.id == 1: print(x, flush=True) n = Notification(comment_id=c.id, user_id=x) g.db.add(n)