fds
This commit is contained in:
parent
bc3b66fd7c
commit
e77133de30
1 changed files with 3 additions and 3 deletions
|
@ -115,15 +115,15 @@ def notifications(v):
|
||||||
next_exists = (len(comments) > 25)
|
next_exists = (len(comments) > 25)
|
||||||
comments = comments[:25]
|
comments = comments[:25]
|
||||||
|
|
||||||
cids = [x[0] for x in g.db.query(Comment.id).join(Notification).filter(
|
cids = set([x[0] for x in g.db.query(Comment.id).join(Notification).filter(
|
||||||
Notification.user_id == v.id,
|
Notification.user_id == v.id,
|
||||||
Comment.is_banned == False,
|
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(Notification.created_utc.desc()).offset(25 * (page - 1)).limit(100).all()]
|
).order_by(Notification.created_utc.desc()).offset(25 * (page - 1)).limit(100).all()])
|
||||||
|
|
||||||
comms = get_comments(cids, v=v)
|
comms = get_comments(list(cids), v=v)
|
||||||
|
|
||||||
listing = []
|
listing = []
|
||||||
for c in comments:
|
for c in comments:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue