Skip to content

Commit

Permalink
Added default for database env var
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas-holzner committed Sep 30, 2024
1 parent 263be30 commit 0e8076a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/app/database.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

load_dotenv()

SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL")
SQLALCHEMY_DATABASE_URL = os.getenv("DATABASE_URL", "sqlite:///./database.db")

engine = create_engine(SQLALCHEMY_DATABASE_URL, connect_args={"check_same_thread": False})
SessionLocal = sessionmaker(autocommit=False, autoflush=False, bind=engine)
Expand Down

0 comments on commit 0e8076a

Please sign in to comment.