Skip to content

Commit

Permalink
Fix JSON and Memory store attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
munrojm committed Jan 9, 2023
1 parent 9954f38 commit f255b70
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/maggma/stores/mongolike.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,6 +579,7 @@ def __init__(self, collection_name: str = "memory_db", **kwargs):
collection_name: name for the collection in memory
"""
self.collection_name = collection_name
self.default_sort = None
self._coll = None
self.kwargs = kwargs
super(MongoStore, self).__init__(**kwargs) # noqa
Expand Down Expand Up @@ -717,6 +718,9 @@ def __init__(
data: List[dict] = []
bytesdata = orjson.dumps(data)
f.write(bytesdata.decode("utf-8"))

self.default_sort = None

super().__init__(**kwargs)

def connect(self, force_reset=False):
Expand Down

0 comments on commit f255b70

Please sign in to comment.