Skip to content

Commit b4999f4

Browse files
committed
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
1 parent 3f2d36e commit b4999f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

feedgen/entry.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -499,7 +499,7 @@ def description(self, description=None, isSummary=False):
499499
if description is not None:
500500
self.__rss_description = description
501501
if isSummary:
502-
self.__atom_summary = description
502+
self.__atom_summary = {'summary': description}
503503
else:
504504
self.__atom_content = {'content': description}
505505
return self.__rss_description

0 commit comments

Comments
 (0)