From 692bc58818b4c81851679c00339e5a491b08d784 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Fri, 27 Mar 2026 13:34:51 +0800 Subject: [PATCH] bugfix --- uapi/uptask.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/uapi/uptask.py b/uapi/uptask.py index 0dbb427..a453bfd 100644 --- a/uapi/uptask.py +++ b/uapi/uptask.py @@ -78,15 +78,15 @@ async def uptask_feedback(task_id, resp_data): await sor.U('uptask', lt.copy()) async def get_my_uptasks(userid, biz_date): - env = ServerEnv() + env = ServerEnv() begin = f'{biz_date} 00:00:00.000' end = f'{biz_date} 24:00:00.999 sql = """select * from uptask where userid=${userid} and start_timestamp >= ${begin}$ and start_timestamp ${end}$""" - async with get_sor_context(env, 'longtasks') as sor: - recs = await sor.R(sql, {'userid': userid, 'biz_date': biz_date}) + async with get_sor_context(env, 'longtasks') as sor: + recs = await sor.R(sql, {'userid': userid, 'biz_date': biz_date}) return recs return []