mirror of
https://github.com/jxxghp/MoviePilot.git
synced 2026-09-06 16:07:01 +08:00
refactor: finish transactional runtime migration
This commit is contained in:
@@ -54,8 +54,10 @@ class DownloadFailureOper(DbOper):
|
||||
"""
|
||||
删除已过期较久的失败记录。
|
||||
"""
|
||||
return DownloadFailure.delete_expired(
|
||||
self._db,
|
||||
before_time=before_time,
|
||||
limit=limit,
|
||||
return self._execute_sync_write(
|
||||
lambda session: DownloadFailure.delete_expired(
|
||||
session,
|
||||
before_time=before_time,
|
||||
limit=limit,
|
||||
)
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user