Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
DevAlone committed Jan 27, 2018
1 parent ba7b9bd commit c0b90e4
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion server/requests_to_models/request_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,14 @@ def _fetch(self, request: FetchRequest):
data.append(obj)

result['data'] = data
result['has_more'] = request.offset + request.limit < result['count']

if not data:
result['has_more'] = False
else:
if request.limit > 0:
result['has_more'] = request.offset + request.limit < result['count']
else:
result['has_more'] = False

return result

Expand Down

0 comments on commit c0b90e4

Please sign in to comment.