This commit is contained in:
yumoqing 2025-08-24 11:53:11 +08:00
parent 4a07d9b5df
commit 4efc171c26

View File

@ -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)