From 68e09b65ba6852854428e4ada2380413b6270b51 Mon Sep 17 00:00:00 2001 From: shyamd Date: Wed, 31 Jan 2018 13:06:10 -0800 Subject: [PATCH] Fix bad default value --- maggma/stores.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maggma/stores.py b/maggma/stores.py index 5fddeba51..b17b02aaf 100644 --- a/maggma/stores.py +++ b/maggma/stores.py @@ -444,7 +444,7 @@ def query(self, properties=None, criteria=None, **kwargs): for f in self.collection.find(filter=criteria, **kwargs).sort('uploadDate', pymongo.DESCENDING): yield json.loads(f.read()) - def query_one(self, properties=None, criteria=None, sort=[('uploadDate', pymongo.DESCENDING)], **kwargs): + def query_one(self, properties=None, criteria=None, sort=(('uploadDate', pymongo.DESCENDING),), **kwargs): """ Function that gets a single document from GridFS. This store ignores all property projections as its designed for whole