(json_path: str)
| 163 | |
| 164 | |
| 165 | def initialize_data_objects(json_path: str) -> dict[str, Data]: |
| 166 | if not os.path.exists(json_path): |
| 167 | with open(json_path, "w") as file: |
| 168 | file.write("{}") |
| 169 | data_objects = {} |
| 170 | else: |
| 171 | with open(json_path, "r") as file: |
| 172 | data_objects = json.load(file) |
| 173 | |
| 174 | data_objects = deserialize_data(data_objects) |
| 175 | return data_objects |
nothing calls this directly
no test coverage detected