Check in backend in working state
This commit is contained in:
@ -1,15 +1,13 @@
|
||||
"""Settings management."""
|
||||
|
||||
from typing import override
|
||||
from pathlib import Path
|
||||
from pydantic import BaseModel, Field
|
||||
from pydantic import Field
|
||||
from pydantic_settings import (
|
||||
BaseSettings,
|
||||
SettingsConfigDict,
|
||||
)
|
||||
|
||||
|
||||
DEFAULT_DATABASE = "sshecret.db"
|
||||
DEFAULT_DATABASE = "sqlite:///sshecret.db"
|
||||
|
||||
|
||||
class BackendSettings(BaseSettings):
|
||||
@ -17,7 +15,7 @@ class BackendSettings(BaseSettings):
|
||||
|
||||
model_config = SettingsConfigDict(env_file=".backend.env", env_prefix="sshecret_")
|
||||
|
||||
db_file: Path = Field(default=Path(DEFAULT_DATABASE).absolute())
|
||||
db_url: str = Field(default=DEFAULT_DATABASE)
|
||||
|
||||
|
||||
def get_settings() -> BackendSettings:
|
||||
|
||||
Reference in New Issue
Block a user