Change default page size to 25

This commit is contained in:
Thomas Sileo 2018-07-06 23:54:41 +02:00
parent 10f26d0350
commit 6826e833fa

2
app.py
View file

@ -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(