mirror of https://github.com/morpheus65535/bazarr
Fixed import order that was preventing Bazarr from starting after initial database creation.
This commit is contained in:
parent
25281709c1
commit
c2f2ce1777
|
@ -12,7 +12,6 @@ import rarfile
|
|||
from dogpile.cache.region import register_backend as register_cache_backend
|
||||
|
||||
from app.config import settings, configure_captcha_func
|
||||
from app.database import init_db, migrate_db
|
||||
from app.get_args import args
|
||||
from app.logger import configure_logging
|
||||
from utilities.binaries import get_binary, BinaryNotFound
|
||||
|
@ -217,6 +216,8 @@ def init_binaries():
|
|||
return exe
|
||||
|
||||
|
||||
# keep this import at the end to prevent peewee.OperationalError: unable to open database file
|
||||
from app.database import init_db, migrate_db # noqa E402
|
||||
init_db()
|
||||
migrate_db()
|
||||
init_binaries()
|
||||
|
|
Loading…
Reference in New Issue