mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-07-12 16:02:35 +08:00
fix 统一处理db事务回滚
This commit is contained in:
@@ -61,4 +61,4 @@ class Site(Base):
|
||||
@staticmethod
|
||||
def reset(db: Session):
|
||||
db.query(Site).delete()
|
||||
db.commit()
|
||||
Base.commit(db)
|
||||
|
||||
Reference in New Issue
Block a user