From f56873c40b73a25796670ebc460a694a6507b7e7 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 03:18:30 +0200 Subject: [PATCH] fds --- files/routes/front.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 1c37b4c63..bbca09985 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -34,7 +34,6 @@ def unread(v): return {"data":[x[1].json for x in listing]} -from pprint import pprint @app.get("/notifications") @auth_required @@ -105,7 +104,7 @@ def notifications(v): print("1: " + str(time.time() - t), flush=True) - sq = g.db.query(Comment).join(Notification).distinct(Comment.top_comment_id).filter( + sq = g.db.query(Comment.id).join(Notification).distinct(Comment.top_comment_id).filter( Notification.user_id == v.id, Comment.is_banned == False, Comment.deleted_utc == 0, @@ -113,9 +112,7 @@ def notifications(v): Comment.body_html.notlike('

New rdrama mention: