Skip to content

Commit

Permalink
Merge pull request #820 from AI4Bharat/small_fix_ann_response
Browse files Browse the repository at this point in the history
small_fix
  • Loading branch information
ishvindersethi22 authored Aug 24, 2023
2 parents 49352fc + e1a8c61 commit 60aa11f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions backend/tasks/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -1364,6 +1364,7 @@ def partial_update(self, request, pk=None):
request.data["result"], annotation_obj.task
)
annotation_obj.save(update_fields=["result"])
request.data["result"] = annotation_obj.result
annotation_response = super().partial_update(request)
annotation_id = annotation_response.data["id"]
annotation = Annotation.objects.get(pk=annotation_id)
Expand Down Expand Up @@ -1492,6 +1493,7 @@ def partial_update(self, request, pk=None):
request.data["result"], annotation_obj.task
)
annotation_obj.save(update_fields=["result"])
request.data["result"] = annotation_obj.result
annotation_response = super().partial_update(request)
annotation_id = annotation_response.data["id"]
annotation = Annotation.objects.get(pk=annotation_id)
Expand Down Expand Up @@ -1648,6 +1650,7 @@ def partial_update(self, request, pk=None):
request.data["result"], annotation_obj.task
)
annotation_obj.save(update_fields=["result"])
request.data["result"] = annotation_obj.result
annotation_response = super().partial_update(request)
task = annotation.task

Expand Down

0 comments on commit 60aa11f

Please sign in to comment.