(self)
| 34 | self.refresh() |
| 35 | |
| 36 | def refresh(self): |
| 37 | self.json_path = get_cache_file_path() |
| 38 | self.json_data = {} |
| 39 | |
| 40 | if not os.path.isfile(self.json_path): |
| 41 | self.commit_to_disk() |
| 42 | |
| 43 | with open(self.json_path, "r") as json_file: |
| 44 | self.json_data = json.load(json_file) |
| 45 | |
| 46 | def commit_to_disk(self): |
| 47 | with open(self.json_path, "w") as json_file: |
no test coverage detected