added support for skip and limit

This commit is contained in:
Eran Sandler 2015-01-15 17:14:48 +02:00
parent 6b0775f7c7
commit 2dbcd88313

View File

@ -197,6 +197,9 @@ def mongodb(connection_string):
else:
cursor = db[collection].find(q, f)
if "skip" in query_data:
cursor = cursor.skip(query_data["skip"])
if "limit" in query_data:
cursor = cursor.limit(query_data["limit"])