Commit b4fca9cb authored by lcn's avatar lcn

敬业钢铁发电修改

parent 356a1478
......@@ -40,7 +40,10 @@ async def load_pttl_max(cid, start, end, point_id=None, inline_id=None):
max_val_time = ""
for data in datas:
if data.get("pttl_max_sum"):
mdp_max_value = data["pttl_max_sum"]
if point_id and point_id == 840:
mdp_max_value = abs(data["pttl_max_sum"])
else:
mdp_max_value = data["pttl_max_sum"]
if mdp_max_value and mdp_max_value > max_val:
max_val = mdp_max_value
max_val_time = data["create_time"]
......
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