diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2022-11-06 20:37:37 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2022-11-06 20:41:08 +0300 |
commit | 28c67c4510a3bee574b4077be35147dba257c8f7 (patch) | |
tree | 4bd3f53afe1a1b7e21c766f30c95bd6919d8c81c /src/web_api.py | |
parent | 3c6cc6528cdd1bb2adaaded5f5f36e6df25b7bfd (diff) |
api: fix inverter methods
Diffstat (limited to 'src/web_api.py')
-rwxr-xr-x | src/web_api.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/web_api.py b/src/web_api.py index fc6eb49..8c039e0 100755 --- a/src/web_api.py +++ b/src/web_api.py @@ -211,7 +211,6 @@ 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) @@ -219,7 +218,7 @@ class WebAPIServer(http.HTTPServer): async def GET_grid_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) + wh = InverterDatabase().get_grid_consumed_energy(dt_from, dt_to) return self.ok(wh) |