From b157f9a6b1b283022d799be8495ed4d0c217e292 Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Fri, 15 Sep 2023 19:52:47 +0100 Subject: [PATCH] renaming variable --- src/auto_archiver/enrichers/wacz_enricher.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/auto_archiver/enrichers/wacz_enricher.py b/src/auto_archiver/enrichers/wacz_enricher.py index be1aed5..f1e7bdd 100644 --- a/src/auto_archiver/enrichers/wacz_enricher.py +++ b/src/auto_archiver/enrichers/wacz_enricher.py @@ -95,17 +95,17 @@ class WaczArchiverEnricher(Enricher, Archiver): return False if use_docker: - filename = os.path.join(browsertrix_home_container, "collections", collection, f"{collection}.wacz") + wacz_fn = os.path.join(browsertrix_home_container, "collections", collection, f"{collection}.wacz") else: - filename = os.path.join("collections", collection, f"{collection}.wacz") + wacz_fn = os.path.join("collections", collection, f"{collection}.wacz") - if not os.path.exists(filename): - logger.warning(f"Unable to locate and upload WACZ {filename=}") + if not os.path.exists(wacz_fn): + logger.warning(f"Unable to locate and upload WACZ {wacz_fn=}") return False - to_enrich.add_media(Media(filename), "browsertrix") + to_enrich.add_media(Media(wacz_fn), "browsertrix") if self.extract_media: - self.extract_media_from_wacz(to_enrich, filename) + self.extract_media_from_wacz(to_enrich, wacz_fn) return True def extract_media_from_wacz(self, to_enrich: Metadata, wacz_filename: str) -> None: