Use `desc`

This commit is contained in:
blank X 2021-07-17 13:43:20 +07:00
parent e72c398617
commit d87d05b7d1
Signed by: blankie
GPG Key ID: CC15FC822C7F61F5
1 changed files with 1 additions and 1 deletions

View File

@ -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'