Commit ae588b55 authored by wang.wenrong's avatar wang.wenrong

zhiweiu_fix

parent 9d4a6d83
...@@ -82,7 +82,10 @@ async def get_search_scope(cid, pid, start, end): ...@@ -82,7 +82,10 @@ async def get_search_scope(cid, pid, start, end):
sql = f"select * from point_1min_event where {where_str} " \ sql = f"select * from point_1min_event where {where_str} " \
f"ORDER BY event_datetime desc limit 5000" f"ORDER BY event_datetime desc limit 5000"
async with MysqlUtil() as conn: 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 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