mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 03:04:28 +00:00
Make the per page for the admin stream configurable
This commit is contained in:
parent
f6dbc41e13
commit
7e0ff187a2
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -1538,7 +1538,7 @@ def admin_stream():
|
||||||
if request.args.get("debug_inbox"):
|
if request.args.get("debug_inbox"):
|
||||||
q = {}
|
q = {}
|
||||||
|
|
||||||
inbox_data, older_than, newer_than = paginated_query(DB.activities, q)
|
inbox_data, older_than, newer_than = paginated_query(DB.activities, q, limit=int(request.args.get('limit', 25)))
|
||||||
|
|
||||||
return render_template(
|
return render_template(
|
||||||
tpl, inbox_data=inbox_data, older_than=older_than, newer_than=newer_than
|
tpl, inbox_data=inbox_data, older_than=older_than, newer_than=newer_than
|
||||||
|
|
Loading…
Reference in a new issue