summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2022-11-18 04:36:37 +0300
committerEvgeny Zinoviev <me@ch1p.io>2022-11-18 04:36:37 +0300
commit80bca2085f1cc177ea5060b6f1f23cab19e9f410 (patch)
treef2ec5967e82ba093aaf7c36ee55a835adbbbd40b /src
parent21cb597244ab138ae69d897b301c39f8774f898d (diff)
space fix
Diffstat (limited to 'src')
-rwxr-xr-xsrc/web_api.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/web_api.py b/src/web_api.py
index 37b9867..672bfb8 100755
--- a/src/web_api.py
+++ b/src/web_api.py
@@ -211,6 +211,7 @@ class WebAPIServer(http.HTTPServer):
dt_to = strptime_auto(s_to)
return dt_from, dt_to
+
async def GET_consumed_energy(self, req: http.Request):
dt_from, dt_to = self._get_inverter_from_to(req)
wh = InverterDatabase().get_consumed_energy(dt_from, dt_to)