Skip to content

Commit

Permalink
Merge pull request #798 from AI4Bharat/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
ishvindersethi22 authored Aug 2, 2023
2 parents 2681523 + 5eccba3 commit bc5675c
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions backend/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -288,9 +288,12 @@ def list(self, request, *args, **kwargs):
if (ann_status[0] in ["labeled", "draft", "to_be_revised"]) and (
proj_type == "ContextualTranslationEditing"
):
tas["data"]["output_text"] = annotation_result_json[idx][0][
"value"
]["text"][0]
try:
tas["data"]["output_text"] = annotation_result_json[idx][0][
"value"
]["text"][0]
except:
tas["data"]["output_text"] = "-"
del tas["data"]["machine_translation"]
ordered_tasks.append(tas)

Expand Down

0 comments on commit bc5675c

Please sign in to comment.