mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-18 05:29:38 -04:00
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:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user