fix update method in UpdateManager
All checks were successful
continuous-integration/drone/push Build is passing
continuous-integration/drone/pr Build is passing

This commit is contained in:
mitsuha_s 2022-07-13 22:32:47 +00:00
parent 6759e61bc2
commit ae31be33b6

View file

@ -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