Commit b4fca9cb authored by lcn's avatar lcn

敬业钢铁发电修改

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