mirror of
https://github.com/ArchiveBox/ArchiveBox
synced 2024-11-22 12:13:05 +00:00
fix None canon output to be emptystring
This commit is contained in:
parent
9dedcdd577
commit
a160e6bf20
1 changed files with 1 additions and 1 deletions
|
@ -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">'
|
||||
|
|
Loading…
Reference in a new issue