1
0
Fork 0
mirror of synced 2024-06-03 02:54:32 +12:00

temporarily disable icon highlighting in favor of performance

This commit is contained in:
Nick Sweeting 2020-10-30 05:12:33 -04:00
parent f727ece7b3
commit aede134ab3

View file

@ -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(
'<span class="files-icons" style="font-size: 1.2em; opacity: 0.8">'