Skip to content

Commit f9f02dd

Browse files
committed
fixing .zip extension
1 parent e12c8cd commit f9f02dd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/superannotate/lib/core/usecases/models.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,10 +205,10 @@ def download_to_local_storage(self, destination: str, extract_zip=False):
205205
raise AppException("Couldn't download export.")
206206
time.sleep(1)
207207
self.reporter.stop_spinner()
208-
filename = Path(export["path"]).name
208+
filename = Path(export["path"]).stem
209209
for char in DownloadExportUseCase.FORBIDDEN_CHARS:
210210
filename=filename.replace(char, "_")
211-
filepath = Path(destination) / filename
211+
filepath = Path(destination) / (filename+'.zip')
212212
with requests.get(export["download"], stream=True) as response:
213213
response.raise_for_status()
214214
with open(filepath, "wb") as f:

0 commit comments

Comments
 (0)