Skip to content

Commit 0942c69

Browse files
committed
Revert model_dump override
1 parent d8aa862 commit 0942c69

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

ratapi/project.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -927,7 +927,7 @@ def classlist_script(name, classlist):
927927
+ "\n)"
928928
)
929929

930-
def model_dump(self):
930+
def to_dict(self):
931931
"""Generate a dictionary representation of the model.
932932
933933
Returns
@@ -982,7 +982,7 @@ def save(self, filepath: str | Path = "./project.json"):
982982
The path to where the project file will be written.
983983
"""
984984
filepath = Path(filepath).with_suffix(".json")
985-
json_dict = self.model_dump()
985+
json_dict = self.to_dict()
986986
for file in json_dict["custom_files"]:
987987
file["path"] = try_relative_to(file["path"], filepath.parent)
988988
filepath.write_text(json.dumps(json_dict))

0 commit comments

Comments
 (0)