There was an error while loading. Please reload this page.
1 parent 7711522 commit b72c24bCopy full SHA for b72c24b
1 file changed
ratapi/project.py
@@ -927,7 +927,7 @@ def classlist_script(name, classlist):
927
+ "\n)"
928
)
929
930
- def model_dump(self):
+ def to_dict(self):
931
"""Generate a dictionary representation of the model.
932
933
Returns
@@ -982,7 +982,7 @@ def save(self, filepath: str | Path = "./project.json"):
982
The path to where the project file will be written.
983
"""
984
filepath = Path(filepath).with_suffix(".json")
985
- json_dict = self.model_dump()
+ json_dict = self.to_dict()
986
for file in json_dict["custom_files"]:
987
file["path"] = try_relative_to(file["path"], filepath.parent)
988
filepath.write_text(json.dumps(json_dict))
0 commit comments