fix title showing up as None in some UI spots

This commit is contained in:
Nick Sweeting 2019-02-19 02:40:02 -05:00
parent eff0100971
commit 935dcac0c7
2 changed files with 2 additions and 0 deletions

View file

@ -143,6 +143,7 @@ def write_html_link_index(out_dir, link):
f.write(Template(link_html).substitute({
**link,
**link['latest'],
'title': link['title'] or link['url'],
'type': link['type'] or 'website',
'tags': link['tags'] or 'untagged',
'bookmarked': datetime.fromtimestamp(float(link['timestamp'])).strftime('%Y-%m-%d %H:%M'),