From 5d9e0b699cf16192dc57dabf0e4b7720974ede0d Mon Sep 17 00:00:00 2001 From: jxxghp Date: Sat, 2 Sep 2023 07:09:38 +0800 Subject: [PATCH] =?UTF-8?q?fix=20=E8=BD=AC=E7=A7=BB=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=AE=B0=E5=BD=95=E6=B2=A1=E6=9C=89=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/db/transferhistory_oper.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/app/db/transferhistory_oper.py b/app/db/transferhistory_oper.py index fa8176e4..34f0cbaf 100644 --- a/app/db/transferhistory_oper.py +++ b/app/db/transferhistory_oper.py @@ -78,6 +78,9 @@ class TransferHistoryOper(DbOper): transferhistory = TransferHistory.get_by_src(self._db, kwargs.get("src")) if transferhistory: transferhistory.delete(self._db, transferhistory.id) + kwargs.update({ + "date": time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()) + }) return TransferHistory(**kwargs).create(self._db) def update_download_hash(self, historyid, download_hash):