From dc264269a45c6e99507293a50e9a018084babe50 Mon Sep 17 00:00:00 2001 From: Milo Casagrande Date: Fri, 6 Mar 2015 14:31:42 +0100 Subject: Trivia change. --- app/utils/db.py | 3 +-- 1 file changed, 1 insertion(+), 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 -- cgit v1.2.3