1
0
Fork 0
mirror of synced 2024-06-16 17:35:15 +12:00

fix None canon output to be emptystring

This commit is contained in:
Nick Sweeting 2020-07-29 23:54:41 -04:00
parent 9dedcdd577
commit a160e6bf20

View file

@ -97,7 +97,7 @@ class SnapshotAdmin(admin.ModelAdmin):
canon = link.canonical_outputs()
out_dir = Path(link.link_dir)
link_tuple = lambda link, method: (link.archive_path, canon[method], canon[method] and (out_dir / canon[method]).exists())
link_tuple = lambda link, method: (link.archive_path, canon[method] or '', canon[method] and (out_dir / (canon[method] or 'notdone')).exists())
return format_html(
'<span class="files-icons" style="font-size: 1.2em; opacity: 0.8">'