mirror of
https://github.com/janeczku/calibre-web
synced 2024-11-01 07:36:20 +00:00
Delete custom column related values on database change
This commit is contained in:
parent
2eb4f77a23
commit
b94e1df518
@ -1758,6 +1758,14 @@ def _db_configuration_update_helper():
|
|||||||
ub.session.query(ub.KoboSyncedBooks).delete()
|
ub.session.query(ub.KoboSyncedBooks).delete()
|
||||||
helper.delete_thumbnail_cache()
|
helper.delete_thumbnail_cache()
|
||||||
ub.session_commit()
|
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")
|
_config_string(to_save, "config_calibre_dir")
|
||||||
calibre_db.update_config(config)
|
calibre_db.update_config(config)
|
||||||
if not os.access(os.path.join(config.config_calibre_dir, "metadata.db"), os.W_OK):
|
if not os.access(os.path.join(config.config_calibre_dir, "metadata.db"), os.W_OK):
|
||||||
|
Loading…
Reference in New Issue
Block a user