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
+2 -2
View File
@@ -17,14 +17,14 @@ class EventsDescriptionBody(BaseModel):
class EventsCreateBody(BaseModel):
source_type: Optional[str] = "api"
sub_label: Optional[str] = None
score: Optional[int] = 0
score: Optional[float] = 0
duration: Optional[int] = 30
include_recording: Optional[bool] = True
draw: Optional[dict] = {}
class EventsEndBody(BaseModel):
end_time: Optional[int] = None
end_time: Optional[float] = None
class SubmitPlusBody(BaseModel):