We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent fe971cb commit e0da8c8Copy full SHA for e0da8c8
backend/api/db.py
@@ -32,6 +32,7 @@ def get_engine_url() -> str:
32
# Use the cached settings instance instead of instantiating ``Settings``
33
# directly so configuration is read a single time across the app.
34
settings = get_settings()
35
+ # ``get_settings`` returns the cached Settings instance from api.config.
36
url = os.getenv("DATABASE_URL", settings.database_url)
37
if url.startswith("sqlite"):
38
return url
0 commit comments