mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix tests
This commit is contained in:
parent
c06c691485
commit
29caafa84e
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ class AppSettings(BaseSettings):
|
||||||
|
|
||||||
@validator("DB_URL", pre=True)
|
@validator("DB_URL", pre=True)
|
||||||
def assemble_db_connection(cls, v: Optional[str], values: dict[str, Any]) -> Any:
|
def assemble_db_connection(cls, v: Optional[str], values: dict[str, Any]) -> Any:
|
||||||
if isinstance(v, str):
|
if isinstance(v, str) or v is None:
|
||||||
return determine_sqlite_path()
|
return determine_sqlite_path()
|
||||||
return PostgresDsn.build(
|
return PostgresDsn.build(
|
||||||
scheme="postgresql",
|
scheme="postgresql",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue