feeds: fix append content

master
pictuga 2018-11-11 16:33:18 +01:00
parent 4536902530
commit 4fb98bc2ed
1 changed files with 3 additions and 3 deletions

View File

@ -465,10 +465,10 @@ class Feed(object):
for attr in globals()[self.itemsClass].dic:
if hasattr(new, attr):
setattr(element, attr, getattr(new, attr))
setattr(item, attr, getattr(new, attr))
elif attr in cousin:
setattr(element, attr, new[attr])
elif attr in new:
setattr(item, attr, new[attr])
def __getitem__(self, key):
return self.wrap_items(self.get_raw('items'))[key]