Mercurial > hg > Feedworm
view backend/arangodb/FeedUpdater.py @ 259:304917762618 default tip
implementation of feed updates
author | Dirk Olmes <dirk@xanthippe.ping.de> |
---|---|
date | Tue, 12 Mar 2019 02:41:22 +0100 |
parents | |
children |
line wrap: on
line source
# -*- coding: utf-8 -*- from backend.AbstractFeedUpdater import AbstractFeedUpdater from FeedEntry import FeedEntry class FeedUpdater(AbstractFeedUpdater): def __init__(self, database, preferences): super(FeedUpdater, self).__init__(preferences) self.database = database def _incrementFeedUpdateDate(self): self.feed.increment_next_update_date() def _processEntry(self, entry): feed_entry = FeedEntry.find_by_link(entry.link, self.database) if feed_entry is None: self._createFeedEntry(entry)