summaryrefslogtreecommitdiff
path: root/src/web_api.py
diff options
context:
space:
mode:
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):