Skip to content

Commit

Permalink
correct type for covjson download
Browse files Browse the repository at this point in the history
  • Loading branch information
jameshawkes committed Mar 14, 2024
1 parent d20aa89 commit 9079af9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion polytope/api/RequestManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -579,7 +579,7 @@ def _download(self, response, output_file, append, request_id=None):
output_file = request_id + ".covjson"
else:
random_id = "".join(random.choices(string.ascii_letters + string.digits, k=16))
output_file = "tmp" + random_id + ".grib"
output_file = "tmp" + random_id + ".covjson"
return self._download_to_file(response, output_file, append)
elif content_type == "application/octet-stream":
if output_file:
Expand Down

0 comments on commit 9079af9

Please sign in to comment.