mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 23:47:41 +08:00
fix shudown
This commit is contained in:
@@ -41,6 +41,13 @@ def get_db() -> Generator:
|
||||
db.close()
|
||||
|
||||
|
||||
def close_database():
|
||||
"""
|
||||
关闭所有数据库连接
|
||||
"""
|
||||
Engine.dispose()
|
||||
|
||||
|
||||
def get_args_db(args: tuple, kwargs: dict) -> Optional[Session]:
|
||||
"""
|
||||
从参数中获取数据库Session对象
|
||||
|
||||
Reference in New Issue
Block a user