mirror of
https://gitlab.com/SIGBUS/nyaa.git
synced 2024-12-22 14:30:01 +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):
|
def modify_query(**new_values):
|
||||||
args = flask.request.args.copy()
|
args = flask.request.args.copy()
|
||||||
|
|
||||||
|
args.pop('p')
|
||||||
|
|
||||||
for key, value in new_values.items():
|
for key, value in new_values.items():
|
||||||
args[key] = value
|
args[key] = value
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue