Fix audio events in explore section (#15286)

* Fix audio events in explore section

Make sure that audio events are listed in the explore section

* Update audio.py

* Hide other submit options

Only allow submits for objects only
This commit is contained in:
tpjanssen
2024-12-01 07:47:37 -07:00
committed by GitHub
parent 71e8f75a01
commit 5802a66469
7 changed files with 13 additions and 5 deletions
+4
View File
@@ -216,6 +216,10 @@ class AudioEventMaintainer(threading.Thread):
"label": label,
"last_detection": datetime.datetime.now().timestamp(),
}
else:
self.logger.warning(
f"Failed to create audio event with status code {resp.status_code}"
)
def expire_detections(self) -> None:
now = datetime.datetime.now().timestamp()
+1
View File
@@ -108,6 +108,7 @@ class ExternalEventProcessor:
EventTypeEnum.api,
EventStateEnum.end,
None,
"",
{"id": event_id, "end_time": end_time},
)
)