mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
tests
This commit is contained in:
parent
7e95e15a36
commit
412786e2ab
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@ BACKUP_DIR = DATA_DIR.joinpath("backups")
|
||||||
DEBUG_DIR = DATA_DIR.joinpath("debug")
|
DEBUG_DIR = DATA_DIR.joinpath("debug")
|
||||||
MIGRATION_DIR = DATA_DIR.joinpath("migration")
|
MIGRATION_DIR = DATA_DIR.joinpath("migration")
|
||||||
TEMPLATE_DIR = DATA_DIR.joinpath("templates")
|
TEMPLATE_DIR = DATA_DIR.joinpath("templates")
|
||||||
TINYDB_DIR = DATA_DIR.joinpath("db")
|
SQLITE_DIR = DATA_DIR.joinpath("db")
|
||||||
TEMP_DIR = DATA_DIR.joinpath(".temp")
|
TEMP_DIR = DATA_DIR.joinpath(".temp")
|
||||||
|
|
||||||
REQUIRED_DIRS = [
|
REQUIRED_DIRS = [
|
||||||
|
@ -29,7 +29,7 @@ REQUIRED_DIRS = [
|
||||||
DEBUG_DIR,
|
DEBUG_DIR,
|
||||||
MIGRATION_DIR,
|
MIGRATION_DIR,
|
||||||
TEMPLATE_DIR,
|
TEMPLATE_DIR,
|
||||||
TINYDB_DIR,
|
SQLITE_DIR,
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
from app_config import DATA_DIR, USE_MONGO, USE_SQL
|
from app_config import SQLITE_DIR, USE_MONGO, USE_SQL
|
||||||
|
|
||||||
from db.sql.db_session import globa_init as sql_global_init
|
from db.sql.db_session import globa_init as sql_global_init
|
||||||
|
|
||||||
if USE_SQL:
|
if USE_SQL:
|
||||||
db_file = DATA_DIR.joinpath("db", "mealie.sqlite")
|
db_file = SQLITE_DIR.joinpath("mealie.sqlite")
|
||||||
sql_global_init(db_file)
|
sql_global_init(db_file)
|
||||||
|
|
||||||
elif USE_MONGO:
|
elif USE_MONGO:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue