fix 转移历史记录没有时间
This commit is contained in:
@ -78,6 +78,9 @@ class TransferHistoryOper(DbOper):
|
|||||||
transferhistory = TransferHistory.get_by_src(self._db, kwargs.get("src"))
|
transferhistory = TransferHistory.get_by_src(self._db, kwargs.get("src"))
|
||||||
if transferhistory:
|
if transferhistory:
|
||||||
transferhistory.delete(self._db, transferhistory.id)
|
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)
|
return TransferHistory(**kwargs).create(self._db)
|
||||||
|
|
||||||
def update_download_hash(self, historyid, download_hash):
|
def update_download_hash(self, historyid, download_hash):
|
||||||
|
Reference in New Issue
Block a user