This commit is contained in:
jxxghp
2024-02-20 14:41:25 +08:00
parent f43efab831
commit 4183dca80f
4 changed files with 15 additions and 15 deletions

View File

@ -10,12 +10,12 @@ class DownloadHistoryOper(DbOper):
下载历史管理
"""
def get_by_path(self, path: Path) -> DownloadHistory:
def get_by_path(self, path: str) -> DownloadHistory:
"""
按路径查询下载记录
:param path: 数据key
"""
return DownloadHistory.get_by_path(self._db, str(path))
return DownloadHistory.get_by_path(self._db, path)
def get_by_hash(self, download_hash: str) -> DownloadHistory:
"""