Commit 683a4f3c authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB

Bugfix search sorting with no results

parent 98a65f45
Pipeline #51467 passed with stage
in 3 minutes and 18 seconds
......@@ -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.")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment