Commit b48292d4 authored by lcn's avatar lcn

BUG修复

parent 07d65473
......@@ -35,6 +35,7 @@ async def get_list_alarm_dao(mid_sql, page_size, page_num):
sql = f"SELECT point_1min_event.*, company.fullname " \
f"FROM `point_1min_event` LEFT JOIN company " \
f"on company.cid=point_1min_event.cid where {mid_sql} " \
f"order by event_datetime desc " \
f"limit {start}, {page_size}"
async with MysqlUtil() as conn:
data = await conn.fetchall(sql)
......
......@@ -769,7 +769,7 @@ async def qual_history_service_new15(start, end, intervel, slots, pid):
for slot in slots:
if slot in datas.keys():
for stats_item in stats_items:
value = datas[slot].get(stats_item) or ""
value = datas[slot].get(stats_item, "")
if value and stats_item == "freq_dev_mean":
# 如果频率偏差保留两位小数之后为0了,那么直接返回0,防止出现-0.00 的情况
if abs(value) < 0.05:
......
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