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

View file

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