better default

pull/1/head
Bobloy 7 years ago
parent a7bc72493e
commit 5434da22bc

@ -3,8 +3,11 @@ from chatter.chatterbot.storage import StorageAdapter
class Query(object): class Query(object):
def __init__(self, query={}): def __init__(self, query=None):
self.query = query if query is None:
self.query = {}
else:
self.query = query
def value(self): def value(self):
return self.query.copy() return self.query.copy()

Loading…
Cancel
Save