[V1.0] Working application, added notifications.
Ready to upload to store.
This commit is contained in:
@@ -11,9 +11,10 @@ _SessionLocal = None
|
||||
|
||||
settings.DB_URL = f"postgresql://{settings.DB_USER}:{settings.DB_PASSWORD}@{settings.DB_HOST}:{settings.DB_PORT}/{settings.DB_NAME}"
|
||||
|
||||
|
||||
def get_engine():
|
||||
global _engine
|
||||
if (_engine is None):
|
||||
if _engine is None:
|
||||
if not settings.DB_URL:
|
||||
raise ValueError("DB_URL is not set in Settings.")
|
||||
print(f"Connecting to database at {settings.DB_URL}")
|
||||
|
||||
Reference in New Issue
Block a user