From b4999f47619f8939ed280628eb5ebbfde2f2da80 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Sun, 24 Dec 2023 11:43:47 +0100 Subject: [PATCH] Fixex generating Atom feed when adding description as summary This patch fixes the problem that generating an Atom feed fails when adding an RSS description marked as summary. The problem was that feedgen internally expected a dictionary, but the value was stored as a string in this case. This fixes #94 --- feedgen/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index f7a13a8..5dd21c2 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -499,7 +499,7 @@ def description(self, description=None, isSummary=False): if description is not None: self.__rss_description = description if isSummary: - self.__atom_summary = description + self.__atom_summary = {'summary': description} else: self.__atom_content = {'content': description} return self.__rss_description