feat 转移历史记录文件清单

This commit is contained in:
jxxghp
2023-08-12 18:11:20 +08:00
parent bd163f9c4b
commit 61d44a6e7d
9 changed files with 48 additions and 9 deletions

View File

@ -4,7 +4,6 @@ from typing import Optional
from pydantic import BaseModel
class TransferTorrent(BaseModel):
"""
待转移任务信息
@ -60,4 +59,4 @@ class TransferInfo(BaseModel):
dicts = vars(self).copy() # 创建一个字典的副本以避免修改原始数据
dicts["path"] = str(self.path) if self.path else None
dicts["target_path"] = str(self.target_path) if self.target_path else None
return dicts
return dicts