Using named arguments for formatting the parsed content of a feed
This commit is contained in:
parent
dc254d6474
commit
d6f653d834
1 changed files with 3 additions and 2 deletions
|
@ -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,
|
||||||
|
|
Loading…
Reference in a new issue