(self)
| 28 | self.refresh() |
| 29 | |
| 30 | def refresh(self): |
| 31 | self.json_path = get_cache_file_path() |
| 32 | self.json_data = {} |
| 33 | |
| 34 | if not os.path.isfile(self.json_path): |
| 35 | self.commit_to_disk() |
| 36 | |
| 37 | with open(self.json_path, "r") as json_file: |
| 38 | self.json_data = json.load(json_file) |
| 39 | |
| 40 | def commit_to_disk(self): |
| 41 | with open(self.json_path, "w") as json_file: |
no test coverage detected