Use `desc`
This commit is contained in:
parent
e72c398617
commit
d87d05b7d1
|
@ -28,7 +28,7 @@ with open(sys.argv[1]) as file, open(sys.argv[2], 'w+') as out:
|
||||||
desc = d['feed'].get('description')
|
desc = d['feed'].get('description')
|
||||||
text = f'<li><b><a href="{html.escape(url)}">{html.escape(d["feed"]["title"])}</a> (<a href="{html.escape(feedurl)}">feed</a>)'
|
text = f'<li><b><a href="{html.escape(url)}">{html.escape(d["feed"]["title"])}</a> (<a href="{html.escape(feedurl)}">feed</a>)'
|
||||||
if desc := d['feed'].get('description'):
|
if desc := d['feed'].get('description'):
|
||||||
text += f':</b> {html.escape(d["feed"]["description"])}'
|
text += f':</b> {html.escape(desc)}'
|
||||||
else:
|
else:
|
||||||
text += '</b>'
|
text += '</b>'
|
||||||
text += '</li>\n'
|
text += '</li>\n'
|
||||||
|
|
Loading…
Reference in New Issue