so much stuff lol
This commit is contained in:
@ -34,6 +34,8 @@ def transaction(db: Session):
|
||||
db.commit()
|
||||
except Exception as e:
|
||||
db.rollback()
|
||||
# Reset the session state
|
||||
db.expire_all()
|
||||
raise e
|
||||
|
||||
def init_db():
|
||||
|
Reference in New Issue
Block a user