mirror of
https://github.com/simon987/nyaa.git
synced 2025-04-19 18:26:43 +00: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
@ -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…
x
Reference in New Issue
Block a user