This commit is contained in:
2024-07-19 11:41:56 +08:00
parent 033842fe68
commit 35b8a1c7e7
2 changed files with 20 additions and 0 deletions
+2
View File
@@ -84,6 +84,8 @@ class ArkHelperBackend:
def dump_json_data(self, json_path, json_data):
try:
og_data = self.load_json_data(json_path)
og_data.update(json_data)
with open(json_path, 'w', encoding='utf-8') as f:
f.write(json.dumps(json_data, ensure_ascii=False))
except FileNotFoundError: