diff --git a/files/routes/front.py b/files/routes/front.py index 7085f38da..2d2d449a8 100644 --- a/files/routes/front.py +++ b/files/routes/front.py @@ -117,30 +117,35 @@ def notifications(v): print("2: " + str(time.time() - t), flush=True) - cids = g.db.query(Comment).join(Notification).filter( + cids = set([x[0] for x in g.db.query(Comment.id).join(Notification).filter( Notification.user_id == v.id, Comment.is_banned == False, Comment.deleted_utc == 0, Comment.author_id != AUTOJANNY_ID, Comment.body_html.notlike('

New rdrama mention: