1
0
Fork 0
mirror of https://gitlab.com/SIGBUS/nyaa.git synced 2024-12-22 09:00:00 +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:
Andrew Zhao 2017-11-06 00:13:55 -08:00 committed by Anna-Maria Meriniemi
parent 72c997173c
commit c0be2571e1

View file

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