Skip to content

Commit

Permalink
fixed json_db for python 3.12
Browse files Browse the repository at this point in the history
  • Loading branch information
tkolzer committed Jul 18, 2024
1 parent 3b74710 commit 097110f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hanfor/json_db_connector/json_db.py
Original file line number Diff line number Diff line change
Expand Up @@ -765,7 +765,7 @@ def __fill_objects(self) -> None:
setattr(obj, field, deepcopy(default_value))

def __create_and_insert_object(self, obj_id: ID_TYPE, obj_data: dict) -> None:
obj = CLS_TYPE.__new__(self.cls)
obj = self.cls.__new__(self.cls)
setattr(obj, self.id_field, obj_id)
self.__data[obj_id] = obj
self.__json_data[obj_id] = obj_data
Expand Down

0 comments on commit 097110f

Please sign in to comment.