Fix door check db session

This commit is contained in:
2026-05-23 17:32:28 +02:00
parent 495535a6de
commit 3d1893d84e
4 changed files with 21 additions and 8 deletions

View File

@@ -13,6 +13,9 @@ def get_session():
with Session(engine) as db:
yield db
def get_db_session():
return Session(engine)
def add_and_refresh(db: Session, obj):
db.add(obj)
db.commit()