Skip to content

Commit

Permalink
Merge pull request #961 from AI4Bharat/revert-956-minorchange-01
Browse files Browse the repository at this point in the history
Revert "added changes for export filename changes"
  • Loading branch information
kartikvirendrar authored Dec 19, 2024
2 parents de64bb0 + c6a09a5 commit d02ba61
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/translation/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -302,11 +302,11 @@ def export_translation(request):
status=status.HTTP_400_BAD_REQUEST,
)

content_type = translation.video.description or "description"
content_type = "application/json"
if len(content) == 0:
content = " "
if return_file_content:
response = HttpResponse(json.dumps(content), content_type=content_type)
response = HttpResponse(json.dumps(content), content_type="application/json")
return response

response = HttpResponse(content, content_type=content_type)
Expand Down

0 comments on commit d02ba61

Please sign in to comment.