Detect missing database file also in gdrive mode
This commit is contained in:
parent
5b3015619d
commit
89877835b3
|
@ -304,9 +304,8 @@ class _ConfigSQL(object):
|
||||||
|
|
||||||
have_metadata_db = bool(self.config_calibre_dir)
|
have_metadata_db = bool(self.config_calibre_dir)
|
||||||
if have_metadata_db:
|
if have_metadata_db:
|
||||||
if not self.config_use_google_drive:
|
db_file = os.path.join(self.config_calibre_dir, 'metadata.db')
|
||||||
db_file = os.path.join(self.config_calibre_dir, 'metadata.db')
|
have_metadata_db = os.path.isfile(db_file)
|
||||||
have_metadata_db = os.path.isfile(db_file)
|
|
||||||
self.db_configured = have_metadata_db
|
self.db_configured = have_metadata_db
|
||||||
constants.EXTENSIONS_UPLOAD = [x.lstrip().rstrip().lower() for x in self.config_upload_formats.split(',')]
|
constants.EXTENSIONS_UPLOAD = [x.lstrip().rstrip().lower() for x in self.config_upload_formats.split(',')]
|
||||||
if os.environ.get('FLASK_DEBUG'):
|
if os.environ.get('FLASK_DEBUG'):
|
||||||
|
|
Loading…
Reference in New Issue
Block a user