Merge pull request #2415 from thsrite/main

This commit is contained in:
jxxghp 2024-06-25 10:06:25 +08:00 committed by GitHub
commit 3287c85300
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -139,3 +139,15 @@ class DownloadHistoryOper(DbOper):
return DownloadHistory.list_by_type(db=self._db,
mtype=mtype,
days=days)
def delete_history(self, historyid):
"""
删除下载记录
"""
DownloadHistory.delete(self._db, historyid)
def delete_downloadfile(self, downloadfileid):
"""
删除下载文件记录
"""
DownloadFiles.delete(self._db, downloadfileid)