Fix accidental switch of previous and next

We were showing the previous page link when we meant to show the next
page link because the variables were swapped round in the code.
This commit is contained in:
Chris Hill-Scott
2020-02-27 17:51:01 +00:00
parent e638b68af1
commit 63f704c64f
2 changed files with 20 additions and 2 deletions

View File

@@ -46,10 +46,10 @@ def uploads(service_id):
uploads = current_service.get_page_of_uploads(page=request.args.get('page'))
prev_page = None
if uploads.next_page:
if uploads.prev_page:
prev_page = generate_previous_dict('main.uploads', service_id, uploads.current_page)
next_page = None
if uploads.prev_page:
if uploads.next_page:
next_page = generate_next_dict('main.uploads', service_id, uploads.current_page)
if uploads.current_page == 1: