Fixed #24 Categories For Feed Entries
Signed-off-by: Lars Kiesow <lkiesow@uos.de>
This commit is contained in:
parent
01e3c0daaa
commit
7d1bda868d
1 changed files with 1 additions and 1 deletions
|
@ -137,7 +137,7 @@ class FeedEntry(object):
|
||||||
summary.text = self.__atom_summary
|
summary.text = self.__atom_summary
|
||||||
|
|
||||||
for c in self.__atom_category or []:
|
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'):
|
if c.get('schema'):
|
||||||
cat.attrib['schema'] = c['schema']
|
cat.attrib['schema'] = c['schema']
|
||||||
if c.get('label'):
|
if c.get('label'):
|
||||||
|
|
Loading…
Reference in a new issue