Fix limit on influxdb

Change-Id: I295d3949765ccb8fc4661a85fd48639b783a03ca
This commit is contained in:
Vincent Fournier 2015-08-11 14:41:45 -04:00 committed by aviau
parent 2f42f02ee8
commit 5452dd574b
2 changed files with 2 additions and 2 deletions

View File

@ -108,7 +108,7 @@ def paging(response, datamodel, live_query=None):
"""
if live_query and live_query.paging:
limit_paging = live_query.paging.size * (live_query.paging.page + 1)
limit = live_query.paging.size + live_query.paging.page
limit = limit_paging + live_query.paging.size
offset_paging = live_query.paging.page * live_query.paging.size
def sort_by_time(init, point_tag):

View File

@ -9,4 +9,4 @@ testrepository>=0.0.18
https://github.com/aviau/mongomock/archive/create_index.zip#egg=mongomock
requests_mock
sphinx_rtd_theme
docker-compose
docker-compose==1.3.3