forked from MarseyWorld/MarseyWorld
fsd
parent
4a4d8333d6
commit
bba9c61b38
|
@ -104,13 +104,13 @@ def notifications(v):
|
|||
|
||||
print("1: " + str(time.time() - t), flush=True)
|
||||
|
||||
all = g.db.query(Comment.id).join(Notification).filter(
|
||||
all = [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(26).all()
|
||||
).order_by(Comment.top_comment_id.desc()).offset(25 * (page - 1)).limit(26).all()]
|
||||
|
||||
print("2: " + str(time.time() - t), flush=True)
|
||||
|
||||
|
|
Loading…
Reference in New Issue