summaryrefslogtreecommitdiff
path: root/src/web_api.py
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2023-05-18 05:12:35 +0300
committerEvgeny Zinoviev <me@ch1p.io>2023-05-18 05:12:35 +0300
commit2960f9f09a9991e342a676999e498b08affa4dff (patch)
tree3198fed18a400588bb38dd1e523b0e50ba07917b /src/web_api.py
parentc0111bf4d3dd91f54d27346970e4c6e0a1ce357e (diff)
openwrt: home side changes
Diffstat (limited to 'src/web_api.py')
-rwxr-xr-xsrc/web_api.py4
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):