Skip to content

Commit

Permalink
Update version to 0.5.0 and fix save method in json store_traits: Co-…
Browse files Browse the repository at this point in the history
…authored-by: MindFlow <mf@mindflo.ai>
  • Loading branch information
steegecs committed Jun 20, 2023
1 parent be094bd commit d4bbccb
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion mindflow/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@
__version__ = "0.4.0"
__version__ = "0.5.0"
2 changes: 1 addition & 1 deletion mindflow/core/types/store_traits/json.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ def delete_bulk(cls, object_ids: List[str]):
objects.pop(object_id, None)

def save(self):
if not (objects := collections.get(self.__name__, {})):
if not (objects := collections.get(self.__class__.__name__, {})):
collections[self.__class__.__name__] = objects

if not hasattr(self, "id"):
Expand Down

0 comments on commit d4bbccb

Please sign in to comment.