Fix: remove stray character in elements.py
Some checks are pending
CI / backend-lint-and-test (push) Waiting to run
Some checks are pending
CI / backend-lint-and-test (push) Waiting to run
This commit is contained in:
parent
520d55259f
commit
53e2f85b47
2 changed files with 15 additions and 1 deletions
|
|
@ -67,4 +67,3 @@ async def get_element(element_id: UUID, db: AsyncSession = Depends(get_db)):
|
||||||
raise HTTPException(status_code=404, detail="Element not found")
|
raise HTTPException(status_code=404, detail="Element not found")
|
||||||
|
|
||||||
return element
|
return element
|
||||||
i
|
|
||||||
|
|
|
||||||
15
backend/app/config.py
Normal file
15
backend/app/config.py
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
"""Application configuration via environment variables."""
|
||||||
|
|
||||||
|
from pydantic_settings import BaseSettings
|
||||||
|
|
||||||
|
|
||||||
|
class Settings(BaseSettings):
|
||||||
|
database_url: str = "postgresql+asyncpg://bim:bim@localhost:5432/bim"
|
||||||
|
upload_dir: str = "/data/uploads"
|
||||||
|
max_upload_size_mb: int = 100
|
||||||
|
|
||||||
|
model_config = {"env_file": ".env"}
|
||||||
|
|
||||||
|
|
||||||
|
settings = Settings()
|
||||||
|
|
||||||
Loading…
Add table
Reference in a new issue