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 []