From fd2682bc6a45b23f7d81f54dee3c4c5d3a46db9b Mon Sep 17 00:00:00 2001 From: thsrite Date: Tue, 25 Jun 2024 10:03:29 +0800 Subject: [PATCH] =?UTF-8?q?add=20=E5=88=A0=E9=99=A4=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E5=8E=86=E5=8F=B2=E3=80=81=E5=88=A0=E9=99=A4=E4=B8=8B=E8=BD=BD?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E5=8E=86=E5=8F=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/downloadhistory_oper.py | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/app/db/downloadhistory_oper.py b/app/db/downloadhistory_oper.py index 8770b28e..a7fe1b64 100644 --- a/app/db/downloadhistory_oper.py +++ b/app/db/downloadhistory_oper.py @@ -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)