master
Aevann1 2022-04-04 03:14:14 +02:00
parent 7def94f50e
commit 4517505b53
1 changed files with 3 additions and 0 deletions

View File

@ -34,6 +34,7 @@ def unread(v):
return {"data":[x[1].json for x in listing]}
from pprint import pprint
@app.get("/notifications")
@auth_required
@ -112,6 +113,8 @@ def notifications(v):
Comment.body_html.notlike('<html><body><p>New rdrama mention: <a href="https://old.reddit.com/r/%')
).order_by(Comment.top_comment_id.desc()).subquery()
pprint(vars(sq))
comments = g.db.query(sq.c).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all()
next_exists = (len(comments) > 25)