bugfix
This commit is contained in:
parent
4a07d9b5df
commit
4efc171c26
@ -3,6 +3,7 @@ import json
|
|||||||
from traceback import format_exc
|
from traceback import format_exc
|
||||||
from appPublic.dictObject import DictObject
|
from appPublic.dictObject import DictObject
|
||||||
from appPublic.log import debug, exception
|
from appPublic.log import debug, exception
|
||||||
|
from appPublic.timeUtils import timestampstr
|
||||||
from sqlor.dbpools import DBPools
|
from sqlor.dbpools import DBPools
|
||||||
from ahserver.serverenv import ServerEnv, get_serverenv
|
from ahserver.serverenv import ServerEnv, get_serverenv
|
||||||
|
|
||||||
@ -23,7 +24,7 @@ class DownloadMgr:
|
|||||||
async with db.sqlorContext(dbname) as sor:
|
async with db.sqlorContext(dbname) as sor:
|
||||||
ns = {
|
ns = {
|
||||||
"id": taskid,
|
"id": taskid,
|
||||||
"finish_time": time.time(),
|
"finish_time": timestampstr()
|
||||||
}
|
}
|
||||||
await sor.U('download', ns)
|
await sor.U('download', ns)
|
||||||
|
|
||||||
@ -35,7 +36,7 @@ class DownloadMgr:
|
|||||||
ns = {
|
ns = {
|
||||||
"id": taskid,
|
"id": taskid,
|
||||||
"userid": userid,
|
"userid": userid,
|
||||||
"start_time": time.time()
|
"start_time": timestampstr()
|
||||||
}
|
}
|
||||||
await sor.C('download', ns)
|
await sor.C('download', ns)
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user