mirror of
https://github.com/ProjectSynthoria/SynthoriaArchive.git
synced 2025-03-12 15:26:56 +02:00
Reset page offset when updating search parameters (#406)
Updating the search query parameters should reset to the first page
This commit is contained in:
parent
72c997173c
commit
c0be2571e1
1 changed files with 2 additions and 0 deletions
|
@ -66,6 +66,8 @@ def static_cachebuster(filename):
|
|||
def modify_query(**new_values):
|
||||
args = flask.request.args.copy()
|
||||
|
||||
args.pop('p')
|
||||
|
||||
for key, value in new_values.items():
|
||||
args[key] = value
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue