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

智电u_all_index_info

parent 49f61cbc
......@@ -1828,6 +1828,8 @@ def carbon_status_res(score):
def carbon_status_res_web(score):
"""根据碳排指数, 求达标情况, web使用"""
if not isinstance(score, int):
return ""
if 90 <= score <= 100:
return "当前能耗达标且水平很低,请继续保持!"
elif 80 <= score < 90:
......
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