comparison backend/couchdb/Feed.py @ 159:7d724cf2dcf7

after a feed update, calculate a feed's update date from the current date, not the original next update date
author dirk
date Mon, 29 Aug 2011 02:41:24 +0200
parents b290e29a94b5
children 2940e74c9663
comparison
equal deleted inserted replaced
158:e8bb107a74e1 159:7d724cf2dcf7
20 return delta.total_seconds() > self._updateIntervalInSeconds() 20 return delta.total_seconds() > self._updateIntervalInSeconds()
21 21
22 def incrementNextUpdateDate(self): 22 def incrementNextUpdateDate(self):
23 updateInterval = self._updateIntervalInSeconds() 23 updateInterval = self._updateIntervalInSeconds()
24 delta = timedelta(seconds=updateInterval) 24 delta = timedelta(seconds=updateInterval)
25 self.next_update = self.next_update + delta 25 self.next_update = datetime.now() + delta
26 26
27 def _updateIntervalInSeconds(self): 27 def _updateIntervalInSeconds(self):
28 return self.update_interval * 60 28 return self.update_interval * 60