diff options
author | Milo Casagrande <milo.casagrande@linaro.org> | 2015-03-06 14:31:42 +0100 |
---|---|---|
committer | Milo Casagrande <milo.casagrande@linaro.org> | 2015-03-06 14:31:42 +0100 |
commit | dc264269a45c6e99507293a50e9a018084babe50 (patch) | |
tree | 449a409bef2c925a023198b392851abe566d2279 | |
parent | 38de34d24ed65d7d439066e82e359b8f881514ff (diff) |
Trivia change.
-rw-r--r-- | app/utils/db.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/utils/db.py b/app/utils/db.py index 3885a68..14cb03f 100644 --- a/app/utils/db.py +++ b/app/utils/db.py @@ -162,8 +162,7 @@ def find_and_count(collection, limit, skip, spec=None, fields=None, sort=None): :return The search result and the total count. """ db_result = collection.find( - limit=limit, skip=skip, spec=spec, fields=fields, sort=sort - ) + spec=spec, limit=limit, skip=skip, fields=fields, sort=sort) res_count = db_result.count() return db_result, res_count |