From 99eac825e76eefbdc4217d5fd257153ab29853c3 Mon Sep 17 00:00:00 2001 From: thsrite Date: Wed, 16 Aug 2023 09:47:29 +0800 Subject: [PATCH] fix #129 --- app/plugins/autobackup/__init__.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/plugins/autobackup/__init__.py b/app/plugins/autobackup/__init__.py index ee6fc20a..4d1062bb 100644 --- a/app/plugins/autobackup/__init__.py +++ b/app/plugins/autobackup/__init__.py @@ -152,7 +152,8 @@ class AutoBackup(_PluginBase): backup_path = bk_path / backup_file backup_path.mkdir(parents=True) # 把现有的相关文件进行copy备份 - shutil.copy(f'{config_path}/category.yaml', backup_path) + if settings.LIBRARY_CATEGORY: + shutil.copy(f'{config_path}/category.yaml', backup_path) shutil.copy(f'{config_path}/user.db', backup_path) zip_file = str(backup_path) + '.zip'