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')
|
||||
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'):
|
||||
text += f':</b> {html.escape(d["feed"]["description"])}'
|
||||
text += f':</b> {html.escape(desc)}'
|
||||
else:
|
||||
text += '</b>'
|
||||
text += '</li>\n'
|
||||
|
|
Loading…
Reference in New Issue