From aede134ab39392b512591af54fc8e5196797d46a Mon Sep 17 00:00:00 2001 From: Nick Sweeting Date: Fri, 30 Oct 2020 05:12:33 -0400 Subject: [PATCH] temporarily disable icon highlighting in favor of performance --- archivebox/core/utils.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/archivebox/core/utils.py b/archivebox/core/utils.py index 1c24fe4d..58376843 100644 --- a/archivebox/core/utils.py +++ b/archivebox/core/utils.py @@ -10,7 +10,10 @@ def get_icons(snapshot: Snapshot) -> str: canon = link.canonical_outputs() out_dir = Path(link.link_dir) - link_tuple = lambda link, method: (link.archive_path, canon[method] or '', canon[method] and (out_dir / (canon[method] or 'notdone')).exists()) + # slow version: highlights icons based on whether files exist or not for that output + # link_tuple = lambda link, method: (link.archive_path, canon[method] or '', canon[method] and (out_dir / (canon[method] or 'notdone')).exists()) + # fast version: all icons are highlighted without checking for outputs in filesystem + link_tuple = lambda link, method: (link.archive_path, canon[method] or '', canon[method]) return format_html( ''