From 4fb98bc2ed767d9b530dc0be53c470229488402c Mon Sep 17 00:00:00 2001 From: pictuga Date: Sun, 11 Nov 2018 16:33:18 +0100 Subject: [PATCH] feeds: fix append content --- morss/feeds.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/morss/feeds.py b/morss/feeds.py index bdb02e3..5d73dfe 100644 --- a/morss/feeds.py +++ b/morss/feeds.py @@ -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]