This commit is contained in:
Aevann1 2022-04-04 01:37:22 +02:00
parent 081a01f1b5
commit 5f734cacf2

View file

@ -107,7 +107,7 @@ def notifications(v):
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()).offset(50 * (page - 1)).limit(100).all()) ).order_by(Comment.top_comment_id.desc()).limit(50 + 50*page).all())
comments = g.db.query(Comment).join(Notification).distinct(Comment.top_comment_id).filter( comments = g.db.query(Comment).join(Notification).distinct(Comment.top_comment_id).filter(
Notification.user_id == v.id, Notification.user_id == v.id,