Permalink
Browse files

Fix Python 3.x compatibility issue

Introduced with OPTIMIZE_PAGINATION_FOR_SPEED.
  • Loading branch information...
1 parent 16e3f6a commit 37f6533bbcd68d57ce504de9055fb7b527e04f4e @nicolaiarocci committed Dec 17, 2016
Showing with 2 additions and 1 deletion.
  1. +1 −0 .cache/v/cache/lastfailed
  2. +1 −1 eve/methods/get.py
@@ -0,0 +1 @@
+{}
View
@@ -530,7 +530,7 @@ def _pagination_links(resource, req, document_count, document_id=None):
# strip any queries from the self link if present
_pagination_link = _links['self']['href'].split('?')[0]
- if (req.page * req.max_results < document_count or
+ if (req.page * req.max_results < (document_count or 0) or
config.OPTIMIZE_PAGINATION_FOR_SPEED):
q = querydef(req.max_results, req.where, req.sort, version,
req.page + 1, other_params)

0 comments on commit 37f6533

Please sign in to comment.