diff --git a/backend/pashub_fetcher/pashub_client.py b/backend/pashub_fetcher/pashub_client.py index c3f1caff..45767874 100644 --- a/backend/pashub_fetcher/pashub_client.py +++ b/backend/pashub_fetcher/pashub_client.py @@ -68,13 +68,16 @@ class PashubClient: core_paths.append(file_path) other_paths: List[str] = [] + if include_other: for evidence in grouped.other: if not evidence.file_id: continue + metadata = self._get_evidence_metadata(job_id, evidence.file_id) download_url = self._build_download_url(metadata, evidence.file_id) file_path = os.path.join("/tmp", evidence.file_name) + self._download_file(download_url, file_path) logger.info("Successfully downloaded other file") other_paths.append(file_path)