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

api.v1.events.views.EventList.get: bugfix integer division calculation

parent 2f0f53f2
No related branches found
No related tags found
1 merge request!29Python3
......@@ -407,7 +407,7 @@ class EventList(InheritPermissionsAPIView):
d = {'error': 'Too many events.' }
return Response(d, status=status.HTTP_400_BAD_REQUEST)
last = max(0, (numRows / count)) * count
last = max(0, (numRows // count)) * count
rv = {}
links = {}
rv['links'] = links
......
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