From 00bb55203ec7f585e5b31d233b9f8a94dc53f830 Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 27 Nov 2020 23:45:49 -0500 Subject: [PATCH] always show WARC icon with opacity set based on exists --- archivebox/core/utils.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/archivebox/core/utils.py b/archivebox/core/utils.py index 9804d6ee..3df46a51 100644 --- a/archivebox/core/utils.py +++ b/archivebox/core/utils.py @@ -42,8 +42,7 @@ def get_icons(snapshot: Snapshot) -> str: if extractor == "wget": # warc isn't technically it's own extractor, so we have to add it after wget exists = list((Path(path) / canon["warc_path"]).glob("*.warc.gz")) - if exists: - output += output_template.format(exists[0], "", str(bool(exists)), "warc", icons.get("warc", "?")) + output += output_template.format(exists[0] if exists else '#', canon["warc_path"], str(bool(exists)), "warc", icons.get("warc", "?")) if extractor == "archive_org": # The check for archive_org is different, so it has to be handled separately