sdf
This commit is contained in:
parent
42a0286be0
commit
3d0acdb68f
1 changed files with 2 additions and 2 deletions
|
@ -104,11 +104,11 @@ def notifications(v):
|
||||||
|
|
||||||
print("1: " + str(time.time() - t), flush=True)
|
print("1: " + str(time.time() - t), flush=True)
|
||||||
|
|
||||||
all = set(x[0] for x in g.db.query(Notification.comment_id).join(Comment, Notification.comment_id == Comment.id).filter(Comment.is_banned == False,
|
all = [x[0] for x in g.db.query(Notification.comment_id).join(Comment, Notification.comment_id == Comment.id).filter(Comment.is_banned == False,
|
||||||
Comment.deleted_utc == 0,
|
Comment.deleted_utc == 0,
|
||||||
Comment.author_id != AUTOJANNY_ID,
|
Comment.author_id != AUTOJANNY_ID,
|
||||||
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
|
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
|
||||||
).order_by(Comment.top_comment_id.desc()).limit(50 + 50*page).all())
|
).order_by(Comment.top_comment_id.desc()).limit(50 + 50*page).all()]
|
||||||
|
|
||||||
print("2: " + str(time.time() - t), flush=True)
|
print("2: " + str(time.time() - t), flush=True)
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue