From 44af236fe5c593770a0284cb4a9dce42a1667612 Mon Sep 17 00:00:00 2001 From: kartikvirendrar Date: Wed, 30 Oct 2024 16:40:16 +0530 Subject: [PATCH] fixed minor bug in complete transcription task --- backend/transcript/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()