MCPcopy Create free account
hub / github.com/omkarcloud/botasaurus / commit_to_disk

Method commit_to_disk

botasaurus/botasaurus_storage.py:46–48  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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:
48 json.dump(self.json_data, json_file, indent=4)
49
50 def get_item(self, key: str, default = None) -> str:
51 if key in self.json_data:

Callers 4

refreshMethod · 0.95
set_itemMethod · 0.95
remove_itemMethod · 0.95
clearMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected