switch to chackra, bugfixes

This commit is contained in:
Sara
2023-12-21 13:56:37 +01:00
parent 5535f20fab
commit 89dc6ebb01
8 changed files with 384 additions and 201 deletions

View File

@@ -41,6 +41,9 @@ async def transcript_get_participants(
transcript_id, user_id=user_id
)
if transcript.participants is None:
return []
return [
Participant.model_validate(participant)
for participant in transcript.participants
@@ -59,7 +62,7 @@ async def transcript_add_participant(
)
# ensure the speaker is unique
if participant.speaker is not None:
if participant.speaker is not None and transcript.participants is not None:
for p in transcript.participants:
if p.speaker == participant.speaker:
raise HTTPException(