Fix event parsing

This commit is contained in:
Nick Mowen 2023-07-07 13:31:15 -06:00
parent 8970520b0d
commit b2981b5788

View File

@ -196,7 +196,7 @@ class AudioEventMaintainer(threading.Thread):
) )
if resp.status_code == 200: if resp.status_code == 200:
event_id = resp.json()[0]["event_id"] event_id = resp.json()["event_id"]
self.detections[label] = { self.detections[label] = {
"id": event_id, "id": event_id,
"label": label, "label": label,