From 7d1bda868dc769691dbc58e0a77ec89f0ffe8314 Mon Sep 17 00:00:00 2001 From: Lars Kiesow Date: Sat, 3 Jan 2015 23:27:52 +0100 Subject: [PATCH] Fixed #24 Categories For Feed Entries Signed-off-by: Lars Kiesow --- feedgen/entry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/feedgen/entry.py b/feedgen/entry.py index 00e4c94..09ad9bd 100644 --- a/feedgen/entry.py +++ b/feedgen/entry.py @@ -137,7 +137,7 @@ class FeedEntry(object): summary.text = self.__atom_summary for c in self.__atom_category or []: - cat = etree.SubElement(feed, 'category', term=c['term']) + cat = etree.SubElement(entry, 'category', term=c['term']) if c.get('schema'): cat.attrib['schema'] = c['schema'] if c.get('label'):