narrowing bulk_download stop service scope

This commit is contained in:
Stefan Tobler
2024-01-28 00:38:01 -05:00
committed by psychedelicious
parent 39c01a833d
commit b5ca1643a6
2 changed files with 21 additions and 3 deletions

View File

@ -143,8 +143,8 @@ class BulkDownloadService(BulkDownloadBase):
def stop(self, *args, **kwargs):
"""Stop the bulk download service and delete the files in the bulk download folder."""
# Get all the files in the bulk downloads folder
files = self.__bulk_downloads_folder.glob("*")
# Get all the files in the bulk downloads folder, only .zip files
files = self.__bulk_downloads_folder.glob("*.zip")
# Delete all the files
for file in files: