remotes/1693045480750635534/spooky-22
Aevann1 2022-04-04 02:44:21 +02:00
parent ea107e9966
commit 417a62faef
1 changed files with 2 additions and 2 deletions

View File

@ -117,13 +117,13 @@ def notifications(v):
print("2: " + str(time.time() - t), flush=True)
cids = set([x[0] for x in g.db.query(Comment.id).join(Notification).filter(
cids = [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('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc()).offset(25 * (page - 1)).limit(100).all()] + [x.id for x in comments])
).order_by(Comment.top_comment_id.desc()).all()]
print("3: " + str(time.time() - t), flush=True)