Skip to content

Commit

Permalink
fix: file check
Browse files Browse the repository at this point in the history
  • Loading branch information
dartpain committed Oct 8, 2024
1 parent e66535c commit 355fd2b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/worker.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 warning on line 137 in application/worker.py

View check run for this annotation

Codecov / codecov/patch

application/worker.py#L137

Added line #L137 was not covered by tests

# check if file is .zip and extract it
if filename.endswith(".zip"):
Expand Down

0 comments on commit 355fd2b

Please sign in to comment.