Mbonea commited on
Commit
7e4aa66
1 Parent(s): 08ec6fc

corrected public directory

Browse files
Files changed (1) hide show
  1. App/Worker.py +2 -2
App/Worker.py CHANGED
@@ -56,10 +56,10 @@ def download_assets(links: List[str], temp_dir: str):
56
  else:
57
  # If Content-Disposition is not available, use the last part of the URL as the filename
58
  filename = os.path.basename(urlparse(link).path)
59
-
60
  # Use the extracted filename to save the file
61
 
62
- download_with_wget(link, temp_dir, filename)
63
 
64
 
65
  @celery.task
 
56
  else:
57
  # If Content-Disposition is not available, use the last part of the URL as the filename
58
  filename = os.path.basename(urlparse(link).path)
59
+ public_dir = f"{temp_dir}/public"
60
  # Use the extracted filename to save the file
61
 
62
+ download_with_wget(link, public_dir, filename)
63
 
64
 
65
  @celery.task