comparison backend/couchdb/CouchDbBackend.py @ 201:50b578588405

method ordering
author dirk
date Wed, 01 Feb 2012 01:26:09 +0100
parents 7157bfd3f4d4
children 4cb22b47b659
comparison
equal deleted inserted replaced
200:a122d42bfe72 201:50b578588405
106 for feed in allFeeds: 106 for feed in allFeeds:
107 if feed.needsUpdate(): 107 if feed.needsUpdate():
108 FeedUpdater(self.database, self.preferences()).update(feed) 108 FeedUpdater(self.database, self.preferences()).update(feed)
109 109
110 def expireFeedEntries(self): 110 def expireFeedEntries(self):
111 expireDate = self._calculateExpireDate()
111 logger = logging.getLogger("expiry") 112 logger = logging.getLogger("expiry")
112 expireDate = self._calculateExpireDate()
113 logger.info("expiring entries older than " + str(expireDate)) 113 logger.info("expiring entries older than " + str(expireDate))
114 for entry in FeedEntry.getReadFeedEntriesOlderThan(expireDate, self.database): 114 for entry in FeedEntry.getReadFeedEntriesOlderThan(expireDate, self.database):
115 del self.database[entry.id] 115 del self.database[entry.id]