forked from rDrama/rDrama
fsd
parent
7def94f50e
commit
4517505b53
|
@ -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…
Reference in New Issue