This commit is contained in:
Auric Vente
2024-07-20 10:35:28 -06:00
parent 9aa043ad59
commit c2e2303f05
5 changed files with 271 additions and 2 deletions

View File

@@ -36,3 +36,8 @@ class Storage:
def save_settings(settings: dict[str, Any]) -> None:
with Config.settings_json.open("w") as file:
json.dump(settings, file)
@staticmethod
def get_countries() -> Any:
with Config.countries_json.open() as file:
return json.load(file)