diff --git a/files/routes/front.py b/files/routes/front.py index 815d6d01a..8cc72b9d7 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -102,8 +102,6 @@ def notifications(v): g.db.add(c) g.db.commit() - print("1: " + str(time.time() - t), flush=True) - sq = g.db.query(Comment.id).join(Notification).distinct(Comment.top_comment_id).filter( Notification.user_id == v.id, Comment.is_banned == False, @@ -117,8 +115,6 @@ def notifications(v): next_exists = (len(comments) > 25) comments = comments[:25] - print("2: " + str(time.time() - t), flush=True) - cids = set([x[0] for x in g.db.query(Comment.id).join(Notification).filter( Notification.user_id == v.id, Comment.is_banned == False, @@ -127,12 +123,8 @@ def notifications(v): Comment.body_html.notlike('

New rdrama mention: