1
0
mirror of https://github.com/janeczku/calibre-web synced 2024-12-21 15:40:30 +00:00

Delete custom column related values on database change

This commit is contained in:
Ozzie Isaacs 2024-10-26 16:08:50 +02:00
parent 2eb4f77a23
commit b94e1df518

View File

@ -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):