Commit a35f83af authored by lcn's avatar lcn

bug修复

parent e57796df
......@@ -206,8 +206,8 @@ async def real_time_load(cid, end_dt=None):
f"AND ts>='{str(s_dt)}' AND ts <='{str(end_dt)}' group by tbname;"
url = f"{SETTING.stb_url}db_electric?tz=Asia/Shanghai"
is_succ, results = await get_td_engine_data(url, sql)
if not is_succ:
return ""
if not is_succ or not results:
return 0
head = parse_td_columns(results)
datas = []
......
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