This commit is contained in:
Auric Vente
2024-07-20 04:48:04 -06:00
parent 6450af91be
commit 896b39eb4a
5 changed files with 59 additions and 5 deletions

View File

@@ -26,3 +26,13 @@ class Storage:
def get_names() -> Any:
with Config.names_json.open() as file:
return json.load(file)
@staticmethod
def get_settings() -> Any:
with Config.settings_json.open() as file:
return json.load(file)
@staticmethod
def save_settings(settings: dict[str, Any]) -> None:
with Config.settings_json.open("w") as file:
json.dump(settings, file)