refactor(BackupManager): backup_file method only takes in single files now

Signed-off-by: Dominik Willner <th33xitus@gmail.com>
This commit is contained in:
dw-0
2024-02-10 11:38:23 +01:00
parent 3bef6ecb85
commit 34ebe5d15e
3 changed files with 23 additions and 23 deletions

View File

@@ -37,9 +37,9 @@ def backup_config_json(is_temp=False) -> None:
bm = BackupManager()
if is_temp:
fn = Path.home().joinpath("config.json.kiauh.bak")
bm.backup_file([MAINSAIL_CONFIG_JSON], custom_filename=fn)
bm.backup_file(MAINSAIL_CONFIG_JSON, custom_filename=fn)
else:
bm.backup_file([MAINSAIL_CONFIG_JSON])
bm.backup_file(MAINSAIL_CONFIG_JSON)
def restore_config_json() -> None: