aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMilo Casagrande <milo.casagrande@linaro.org>2015-03-06 14:31:42 +0100
committerMilo Casagrande <milo.casagrande@linaro.org>2015-03-06 14:31:42 +0100
commitdc264269a45c6e99507293a50e9a018084babe50 (patch)
tree449a409bef2c925a023198b392851abe566d2279
parent38de34d24ed65d7d439066e82e359b8f881514ff (diff)
Trivia change.
-rw-r--r--app/utils/db.py3
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