Skip to content
Snippets Groups Projects
Commit 683a4f3c authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Bugfix search sorting with no results

parent 98a65f45
No related branches found
No related tags found
No related merge requests found
......@@ -90,9 +90,9 @@ def superevent_flexigrid_response(request, objects):
end = start+rp
else:
start = 0
total_pages = 1
total_pages = 1 if (total > 0) else 0
page = 1
end = total-1
end = max(total, 0)
if total > MAX_FLEXI_ROWS:
return HttpResponseBadRequest("Too many rows! Please try loading a smaller number.")
......@@ -190,9 +190,9 @@ def event_flexigrid_response(request, objects):
end = start+rp
else:
start = 0
total_pages = 1
total_pages = 1 if (total > 0) else 0
page = 1
end = total-1
end = max(total, 0)
if total > MAX_FLEXI_ROWS:
return HttpResponseBadRequest("Too many rows! Please try loading a smaller number.")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment