|
|
|
@ -43,7 +43,7 @@ def plot_electricity_comparison(year, month, day, data):
|
|
|
|
valid_data = {}
|
|
|
|
valid_data = {}
|
|
|
|
for title, values in data.items():
|
|
|
|
for title, values in data.items():
|
|
|
|
if "昨天" in values and "今天" in values:
|
|
|
|
if "昨天" in values and "今天" in values:
|
|
|
|
if values["昨天"] is not None and values["今天"] is not None:
|
|
|
|
if values["昨天"] is not None and values["今天"] is not None and values["昨天"]!="" and values["今天"]!="":
|
|
|
|
valid_data[title] = values
|
|
|
|
valid_data[title] = values
|
|
|
|
|
|
|
|
|
|
|
|
# 如果没有有效的数据,返回 None 或其他指示
|
|
|
|
# 如果没有有效的数据,返回 None 或其他指示
|
|
|
|
|