fix update method in UpdateManager
This commit is contained in:
parent
6759e61bc2
commit
ae31be33b6
|
@ -24,7 +24,8 @@ class UpdateManager:
|
||||||
feeds = self.database.find_feeds()
|
feeds = self.database.find_feeds()
|
||||||
self.log.info('Feeds to update: %d', len(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)
|
self.log.info('Processing [%d] %s', feed_id, feed_url)
|
||||||
feed = self.rss_reader.get_feed(feed_url)
|
feed = self.rss_reader.get_feed(feed_url)
|
||||||
new_items = feed.items
|
new_items = feed.items
|
||||||
|
|
Loading…
Reference in a new issue