feat: newest json

This commit is contained in:
李衍志523370910113 2024-11-07 23:26:06 +08:00
parent 9a547d3608
commit 0324313f92
2 changed files with 4 additions and 3 deletions

View File

@ -63,6 +63,7 @@ def convert(root: Path = Path(".")) -> None:
task_obj = rtoml.loads(task_toml)
result_model = convert_conf(repo.Config(**repo_obj), task.Config(**task_obj))
result_dict = result_model.model_dump(by_alias=True)
with open(result_json_path, "w") as result_file:
json.dump(result_dict, result_file, ensure_ascii=False, indent=4)
result_file.write("\n")

View File

@ -18,7 +18,7 @@
"/<function",
"get_temp_directory",
"at",
"0x7fa86726c180>/repo-health-checker",
"0x7f46eeff8180>/repo-health-checker",
"-root=.",
"-repoSize=50.5",
"-meta=main.py",
@ -70,8 +70,8 @@
"cpuRateLimit": 0,
"cpuSetLimit": "",
"copyIn": {
"//tmp/repo-checker-va9ba49a/repo-health-checker": {
"src": "//tmp/repo-checker-e82nkuo4/repo-health-checker",
"//tmp/repo-checker-l7uddq8e/repo-health-checker": {
"src": "//tmp/repo-checker-s5wx4xg3/repo-health-checker",
"content": null,
"fileId": null,
"name": null,