Using named arguments for formatting the parsed content of a feed

This commit is contained in:
Fabio Manganiello 2020-09-05 01:43:33 +02:00
parent dc254d6474
commit d6f653d834
1 changed files with 3 additions and 2 deletions

View File

@ -142,9 +142,10 @@ class RssUpdates(HttpRequest):
content += u'''
<h1 style="page-break-before: always">
<a href="{}" target="_blank">{}</a>
<a href="{link}" target="_blank">{title}</a>
</h1>
<div class="_parsed-content">{}</div>'''.format(entry.title, entry.link, entry.content)
<div class="_parsed-content">{content}</div>'''.format(
link=entry.link, title=entry.title, content=entry.content)
e = {
'entry_id': entry.id,