From d6f653d834307e8e8b2f514168f34a0371c0cc13 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sat, 5 Sep 2020 01:43:33 +0200 Subject: [PATCH] Using named arguments for formatting the parsed content of a feed --- platypush/backend/http/request/rss/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/backend/http/request/rss/__init__.py b/platypush/backend/http/request/rss/__init__.py index e69365ab..8987b76f 100644 --- a/platypush/backend/http/request/rss/__init__.py +++ b/platypush/backend/http/request/rss/__init__.py @@ -142,9 +142,10 @@ class RssUpdates(HttpRequest): content += u'''

- {} + {title}

-
{}
'''.format(entry.title, entry.link, entry.content) +
{content}
'''.format( + link=entry.link, title=entry.title, content=entry.content) e = { 'entry_id': entry.id,