mirror of
https://git.sr.ht/~tsileo/microblog.pub
synced 2024-11-15 11:14:28 +00:00
Change default page size to 25
This commit is contained in:
parent
10f26d0350
commit
6826e833fa
1 changed files with 1 additions and 1 deletions
2
app.py
2
app.py
|
@ -588,7 +588,7 @@ def tmp_migrate3():
|
||||||
return "Done"
|
return "Done"
|
||||||
|
|
||||||
|
|
||||||
def paginated_query(db, q, limit=50, sort_key="_id"):
|
def paginated_query(db, q, limit=25, sort_key="_id"):
|
||||||
older_than = newer_than = None
|
older_than = newer_than = None
|
||||||
query_sort = -1
|
query_sort = -1
|
||||||
first_page = not request.args.get("older_than") and not request.args.get(
|
first_page = not request.args.get("older_than") and not request.args.get(
|
||||||
|
|
Loading…
Reference in a new issue