fix(transfer): retain boolean types across dynamic job view

This commit is contained in:
jxxghp
2026-10-20 15:40:55 +08:00
parent 842320a22c
commit e65e0bbd7b

View File

@@ -607,8 +607,8 @@ class TransferSettlementOwner(_TransferOwnerBase):
:return: 该种子或无种子作业是否全部成功
"""
if task.download_hash:
return self.jobview.is_torrent_success(task.download_hash)
return self.jobview.is_success(task)
return cast(bool, self.jobview.is_torrent_success(task.download_hash))
return cast(bool, self.jobview.is_success(task))
def _cleanup_successful_transfer(
self, task: TransferTask, transferhis: TransferHistoryRepository,