From 355fd2b5d74f6f6a5303212ff8ec0270081025dd Mon Sep 17 00:00:00 2001 From: Alex Date: Tue, 8 Oct 2024 15:56:48 +0100 Subject: [PATCH] fix: file check --- application/worker.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/worker.py b/application/worker.py index 2000523c8..f8f38afaf 100755 --- a/application/worker.py +++ b/application/worker.py @@ -131,10 +131,10 @@ def ingest_worker( logging.info(f"Ingest file: {full_path}", extra={"user": user, "job": name_job}) file_data = {"name": name_job, "file": filename, "user": user} - download_file(urljoin(settings.API_URL, "/api/download"), file_data, os.path.join(full_path, filename)) if not os.path.exists(full_path): os.makedirs(full_path) + download_file(urljoin(settings.API_URL, "/api/download"), file_data, os.path.join(full_path, filename)) # check if file is .zip and extract it if filename.endswith(".zip"):