diff --git a/backend/transcript/views.py b/backend/transcript/views.py index 561941f4..f1ec8d3c 100644 --- a/backend/transcript/views.py +++ b/backend/transcript/views.py @@ -2111,7 +2111,7 @@ def save_transcription(request): ) for item in transcript_obj.payload["payload"]: item['verbatim_text'] = item['text'] - item['text'] = item['paraphrased_text'] if item['paraphrased_text'] is not None else item['verbatim_text'] + item['text'] = item['paraphrased_text'] if 'paraphrased_text' in item and item['paraphrased_text'] is not None else item['verbatim_text'] transcript_obj.save() task.status = "COMPLETE" task.save()