From 9079af9bc2d9416816aa5f7a7de55e62ed865bf5 Mon Sep 17 00:00:00 2001 From: majh Date: Thu, 14 Mar 2024 21:17:55 +0000 Subject: [PATCH] correct type for covjson download --- polytope/api/RequestManager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/polytope/api/RequestManager.py b/polytope/api/RequestManager.py index 23f2118..8f5e778 100644 --- a/polytope/api/RequestManager.py +++ b/polytope/api/RequestManager.py @@ -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: