mirror of
https://github.com/janeczku/calibre-web
synced 2024-12-01 05:49:58 +00:00
Fix for invalid db path
This commit is contained in:
parent
8fe2b840e9
commit
2d918bfb72
@ -286,6 +286,11 @@ def setup_db():
|
|||||||
global cc_classes
|
global cc_classes
|
||||||
|
|
||||||
if config.config_calibre_dir is None or config.config_calibre_dir == u'':
|
if config.config_calibre_dir is None or config.config_calibre_dir == u'':
|
||||||
|
content = ub.session.query(ub.Settings).first()
|
||||||
|
content.config_calibre_dir = None
|
||||||
|
content.db_configured = False
|
||||||
|
ub.session.commit()
|
||||||
|
config.loadSettings()
|
||||||
return False
|
return False
|
||||||
|
|
||||||
dbpath = os.path.join(config.config_calibre_dir, "metadata.db")
|
dbpath = os.path.join(config.config_calibre_dir, "metadata.db")
|
||||||
|
Loading…
Reference in New Issue
Block a user