From 1665680523c4c84f29d4382c1f55a5d793fe9fc8 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 00:26:09 +0200 Subject: [PATCH] sfd --- files/routes/front.py | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 870501c83..90e8cd1a7 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -37,6 +37,7 @@ def unread(v): @app.get("/notifications") @auth_required def notifications(v): + t = time.time() try: page = int(request.values.get('page', 1)) except: page = 1 messages = request.values.get('messages') @@ -88,6 +89,13 @@ def notifications(v): next_exists = (len(notifications) > len(listing)) else: + all = [x.comment_id for x in v.notifications.join(Notification.comment).filter( + Comment.is_banned == False, + Comment.deleted_utc == 0, + Comment.author_id != AUTOJANNY_ID, + Comment.body_html.notlike('

New rdrama mention: