corrected public directory
Browse files- 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,
|
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
|