- 修复v1.3.5版本的问题

This commit is contained in:
jxxghp
2023-10-20 08:07:38 +08:00
parent f59609131c
commit 5fc7a7dd8a
5 changed files with 11 additions and 15 deletions

View File

@ -24,12 +24,11 @@ class DownloadHistoryOper(DbOper):
"""
return DownloadHistory.get_by_hash(self._db, download_hash)
def add(self, **kwargs) -> DownloadHistory:
def add(self, **kwargs):
"""
新增下载历史
"""
downloadhistory = DownloadHistory(**kwargs)
return downloadhistory.create(self._db)
DownloadHistory(**kwargs).create(self._db)
def add_files(self, file_items: List[dict]):
"""