fsd
This commit is contained in:
parent
a8b5892d90
commit
49369f900a
1 changed files with 3 additions and 0 deletions
|
@ -34,6 +34,7 @@ def unread(v):
|
||||||
|
|
||||||
return {"data":[x[1].json for x in listing]}
|
return {"data":[x[1].json for x in listing]}
|
||||||
|
|
||||||
|
from pprint import pprint
|
||||||
|
|
||||||
@app.get("/notifications")
|
@app.get("/notifications")
|
||||||
@auth_required
|
@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/%')
|
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()
|
).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()
|
comments = g.db.query(sq.c).order_by(Comment.id.desc()).offset(25 * (page - 1)).limit(26).all()
|
||||||
|
|
||||||
next_exists = (len(comments) > 25)
|
next_exists = (len(comments) > 25)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue