Skip to content

Commit

Permalink
Fix bad default value
Browse files Browse the repository at this point in the history
  • Loading branch information
shyamd committed Feb 1, 2018
1 parent 0dbb04d commit 68e09b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion maggma/stores.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 68e09b6

Please sign in to comment.