refactor(settings): use SimpleConfigParser for KiauhSettings

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-06-19 20:12:39 +02:00
parent c2dfabb326
commit 5c090e88c3
8 changed files with 158 additions and 84 deletions

View File

@@ -102,7 +102,7 @@ def update_client_config(client: BaseWebClient) -> None:
return
settings = KiauhSettings()
if settings.get("kiauh", "backup_before_update"):
if settings.kiauh.backup_before_update:
backup_client_config_data(client)
git_pull_wrapper(client_config.repo_url, client_config.config_dir)