Skip to content

Commit

Permalink
Revert "Fix issue on error thrown on Keyerror 'base'"
Browse files Browse the repository at this point in the history
  • Loading branch information
m4dm4rtig4n authored Nov 30, 2022
1 parent 30ebc92 commit 151f44c
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions app/models/export_mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -227,16 +227,6 @@ def load_detail_data(self, begin, end, price_hp, price_hc, sub_prefix):
"week_euro": {},
"this_month_watt": 0,
"this_month_euro": 0
},
"base": {
"this_year_watt": 0,
"this_year_euro": 0,
"month_watt": {},
"month_euro": {},
"week_watt": {},
"week_euro": {},
"this_month_watt": 0,
"this_month_euro": 0
}
}

Expand Down Expand Up @@ -357,4 +347,4 @@ def detail_linear(self, price_hp, price_hc=0):
idx = idx + 1
app.LOG.log(" => Finish")
else:
app.LOG.log(" => No data")
app.LOG.log(" => No data")

0 comments on commit 151f44c

Please sign in to comment.