Commit 7dd74a58 authored by wang.wenrong's avatar wang.wenrong

Merge branch 'wwr' into 'develop'

智电u_all_index_info

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