Commit 04644eed authored by wang.wenrong's avatar wang.wenrong

Merge branch 'wwr' into 'develop'

zhiweiu_fix

See merge request !31
parents 13285235 ae588b55
......@@ -82,7 +82,10 @@ async def get_search_scope(cid, pid, start, end):
sql = f"select * from point_1min_event where {where_str} " \
f"ORDER BY event_datetime desc limit 5000"
async with MysqlUtil() as conn:
data = await conn.fetchall(sql, args=(cid,))
if cid:
data = await conn.fetchall(sql, args=(cid, ))
else:
data = await conn.fetchall(sql)
return data
......
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