llmage/wwwroot/get_my_asynctasks.dspy
2026-04-09 15:46:55 +08:00

14 lines
229 B
Plaintext

userid = await get_user()
tasks = await get_today_asynctask_list(userid)
for t in tasks:
bin = await read_webpath(t.ioinfo)
t.ioinfo = json.loads(bin.decode('utf-8')
return {
'status': 'ok',
'data': {
'tasks': tasks
}
}