(self, task_id: int)
| 70 | file.write(json_str) |
| 71 | |
| 72 | def get_task_path(self, task_id: int): |
| 73 | path = os.path.join(self.cache_dir, "transcriptions", f"{task_id}.json") |
| 74 | os.makedirs(os.path.dirname(path), exist_ok=True) |
| 75 | return path |
| 76 | |
| 77 | def clear(self): |
| 78 | if os.path.exists(self.pickle_cache_file_path): |
no outgoing calls
no test coverage detected