Skip to content

Commit

Permalink
Fixex generating Atom feed when adding description as summary
Browse files Browse the repository at this point in the history
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
  • Loading branch information
lkiesow committed Dec 24, 2023
1 parent 3f2d36e commit b4999f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion feedgen/entry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b4999f4

Please sign in to comment.