feeds: fix append content
parent
4536902530
commit
4fb98bc2ed
|
@ -465,10 +465,10 @@ class Feed(object):
|
||||||
|
|
||||||
for attr in globals()[self.itemsClass].dic:
|
for attr in globals()[self.itemsClass].dic:
|
||||||
if hasattr(new, attr):
|
if hasattr(new, attr):
|
||||||
setattr(element, attr, getattr(new, attr))
|
setattr(item, attr, getattr(new, attr))
|
||||||
|
|
||||||
elif attr in cousin:
|
elif attr in new:
|
||||||
setattr(element, attr, new[attr])
|
setattr(item, attr, new[attr])
|
||||||
|
|
||||||
def __getitem__(self, key):
|
def __getitem__(self, key):
|
||||||
return self.wrap_items(self.get_raw('items'))[key]
|
return self.wrap_items(self.get_raw('items'))[key]
|
||||||
|
|
Loading…
Reference in New Issue