From cfe113f6c3eebf1a43364f799b486a4e132f9a56 Mon Sep 17 00:00:00 2001 From: jxxghp Date: Thu, 28 Sep 2023 22:16:21 +0800 Subject: [PATCH] fix bug --- app/chain/transfer.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/chain/transfer.py b/app/chain/transfer.py index 35d75da8..96a519ab 100644 --- a/app/chain/transfer.py +++ b/app/chain/transfer.py @@ -255,7 +255,7 @@ class TransferChain(ChainBase): # 新增转移失败历史记录 his = self.transferhis.add_fail( src_path=file_path, - mode=settings.TRANSFER_TYPE, + mode=transfer_type, meta=file_meta, download_hash=download_hash ) @@ -311,7 +311,7 @@ class TransferChain(ChainBase): # 新增转移失败历史记录 self.transferhis.add_fail( src_path=file_path, - mode=settings.TRANSFER_TYPE, + mode=transfer_type, download_hash=download_hash, meta=file_meta, mediainfo=file_mediainfo, @@ -350,7 +350,7 @@ class TransferChain(ChainBase): # 新增转移成功历史记录 self.transferhis.add_success( src_path=file_path, - mode=settings.TRANSFER_TYPE, + mode=transfer_type, download_hash=download_hash, meta=file_meta, mediainfo=file_mediainfo,