mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-05 15:38:19 +08:00
fix dblock
This commit is contained in:
@@ -3,10 +3,7 @@ from typing import Any, Self, List
|
||||
|
||||
from sqlalchemy.orm import as_declarative, declared_attr, Session
|
||||
|
||||
from app.db import ScopedSession
|
||||
|
||||
# 数据库锁
|
||||
DBLock = threading.Lock()
|
||||
from app.db import ScopedSession, DBLock
|
||||
|
||||
|
||||
def db_persist(func):
|
||||
|
||||
Reference in New Issue
Block a user