From b94e1df51884555205c76ff93f6b3d679419cd26 Mon Sep 17 00:00:00 2001 From: Ozzie Isaacs Date: Sat, 26 Oct 2024 16:08:50 +0200 Subject: [PATCH] Delete custom column related values on database change --- cps/admin.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cps/admin.py b/cps/admin.py index bc767a89..08972292 100644 --- a/cps/admin.py +++ b/cps/admin.py @@ -1758,6 +1758,14 @@ def _db_configuration_update_helper(): ub.session.query(ub.KoboSyncedBooks).delete() helper.delete_thumbnail_cache() ub.session_commit() + # deleted visibilities based on custom column and tags + config.config_restricted_column = 0 + config.config_denied_tags = "" + config.config_allowed_tags = "" + config.config_columns_to_ignore = "" + config.config_denied_column_value = "" + config.config_allowed_column_value = "" + config.config_read_column = 0 _config_string(to_save, "config_calibre_dir") calibre_db.update_config(config) if not os.access(os.path.join(config.config_calibre_dir, "metadata.db"), os.W_OK):