From 4efc171c267aa22be140c4edc0cbe60f58ed0f08 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Sun, 24 Aug 2025 11:53:11 +0800 Subject: [PATCH] bugfix --- downloadmgr/download.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/downloadmgr/download.py b/downloadmgr/download.py index 97e32fb..5f30fc9 100644 --- a/downloadmgr/download.py +++ b/downloadmgr/download.py @@ -3,6 +3,7 @@ import json from traceback import format_exc from appPublic.dictObject import DictObject from appPublic.log import debug, exception +from appPublic.timeUtils import timestampstr from sqlor.dbpools import DBPools from ahserver.serverenv import ServerEnv, get_serverenv @@ -23,7 +24,7 @@ class DownloadMgr: async with db.sqlorContext(dbname) as sor: ns = { "id": taskid, - "finish_time": time.time(), + "finish_time": timestampstr() } await sor.U('download', ns) @@ -35,7 +36,7 @@ class DownloadMgr: ns = { "id": taskid, "userid": userid, - "start_time": time.time() + "start_time": timestampstr() } await sor.C('download', ns)