From 2c34cb98ac1725eaff67a9fc2112edc02a739717 Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Mon, 4 Apr 2022 02:47:47 +0200 Subject: [PATCH] fds --- files/routes/front.py | 20 +++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/files/routes/front.py b/files/routes/front.py index 3ade2addad..67489440f7 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -102,7 +102,7 @@ def notifications(v): g.db.add(c) g.db.commit() - print("1: " + str(time.time() - t), flush=True) + # print("1: " + str(time.time() - t), flush=True) comments = g.db.query(Comment).join(Notification).distinct(Comment.top_comment_id).filter( Notification.user_id == v.id, @@ -115,8 +115,7 @@ def notifications(v): next_exists = (len(comments) > 25) comments = comments[:25] - print("2: " + str(time.time() - t), flush=True) - + print(sex = time.time()) cids = [x[0] for x in g.db.query(Comment.id).join(Notification).filter( Notification.user_id == v.id, Comment.is_banned == False, @@ -124,9 +123,20 @@ def notifications(v): Comment.author_id != AUTOJANNY_ID, Comment.body_html.notlike('

New rdrama mention: