Use right args and call

This commit is contained in:
Trenton H 2024-11-13 07:55:24 -08:00
parent f8efd9312d
commit 4637a82b5c

View File

@ -1597,9 +1597,8 @@ class BulkDownloadView(GenericAPIView):
settings.SCRATCH_DIR.mkdir(parents=True, exist_ok=True)
temp_dir = Path(
tempfile.TemporaryDirectory(
tempfile.mkdtemp(
dir=settings.SCRATCH_DIR,
delete=False,
),
)