diff options
author | Evgeny Zinoviev <me@ch1p.io> | 2023-05-18 05:12:35 +0300 |
---|---|---|
committer | Evgeny Zinoviev <me@ch1p.io> | 2023-05-18 05:12:35 +0300 |
commit | 2960f9f09a9991e342a676999e498b08affa4dff (patch) | |
tree | 3198fed18a400588bb38dd1e523b0e50ba07917b /src/web_api.py | |
parent | c0111bf4d3dd91f54d27346970e4c6e0a1ce357e (diff) |
openwrt: home side changes
Diffstat (limited to 'src/web_api.py')
-rwxr-xr-x | src/web_api.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/web_api.py b/src/web_api.py index c00c372..0ddc6bd 100755 --- a/src/web_api.py +++ b/src/web_api.py @@ -154,8 +154,10 @@ class WebAPIServer(http.HTTPServer): try: logs = data['logs'] + ap = int(data['ap']) except KeyError: logs = '' + ap = 0 # validate it logs = json.loads(logs) @@ -173,7 +175,7 @@ class WebAPIServer(http.HTTPServer): line[1] )) - BotsDatabase().add_openwrt_logs(lines) + BotsDatabase().add_openwrt_logs(lines, ap) return self.ok() async def GET_recordings_list(self, req: http.Request): |