From ae31be33b67f54c187f6e0ef0ed1c02ce46cf573 Mon Sep 17 00:00:00 2001 From: mitsuha_s Date: Wed, 13 Jul 2022 22:32:47 +0000 Subject: [PATCH] fix update method in UpdateManager --- update_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/update_manager.py b/update_manager.py index 9ff5218..ab0ea0d 100644 --- a/update_manager.py +++ b/update_manager.py @@ -24,7 +24,8 @@ class UpdateManager: feeds = self.database.find_feeds() self.log.info('Feeds to update: %d', len(feeds)) - for feed_id, feed_url in feeds: + for feed in feeds: + feed_id, feed_url = feed.values() self.log.info('Processing [%d] %s', feed_id, feed_url) feed = self.rss_reader.get_feed(feed_url) new_items = feed.items