Commit 6d5b0a5c authored by ZZH's avatar ZZH

fix sql 2023-11-22

parent 80071c2e
......@@ -48,7 +48,7 @@ async def alarm_setting_pds(pid, locations):
async with MysqlUtil() as conn:
res_point = await conn.fetchall(sql_point, args=(pid,)) if pid else {}
res_location = await conn.fetchall(sql_location, args=(
tuple(locations)), ) if locations else {}
tuple(locations),)) if locations else {}
alarm_list = []
for res in res_point:
name = res.get("name", "")
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment