From de156f1cf9a878ad9e61a32a444eee4abb4b27ac Mon Sep 17 00:00:00 2001 From: Dave Date: Tue, 13 May 2025 15:29:06 +0100 Subject: [PATCH] chore: comment out some lines to cause error during deployment --- app/database/database.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/app/database/database.py b/app/database/database.py index f902ea2..507d0cd 100644 --- a/app/database/database.py +++ b/app/database/database.py @@ -5,10 +5,10 @@ from sqlalchemy.orm import sessionmaker # Create database directory if it doesn't exist DB_DIR = Path("/app") / "storage" / "db" -DB_DIR.mkdir(parents=True, exist_ok=True) +# DB_DIR.mkdir(parents=True, exist_ok=True) # Database URL -SQLALCHEMY_DATABASE_URL = f"sqlite:///{DB_DIR}/db.sqlite" +# SQLALCHEMY_DATABASE_URL = f"sqlite:///{DB_DIR}/db.sqlite" # Create engine engine = create_engine( @@ -23,9 +23,9 @@ SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine) Base = declarative_base() # Dependency -def get_db(): - db = SessionLocal() - try: - yield db - finally: - db.close() \ No newline at end of file +# def get_db(): +# db = SessionLocal() +# try: +# yield db +# finally: +# db.close() \ No newline at end of file