diff 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
line wrap: on
line diff
--- a/backend/couchdb/Feed.py	Mon Aug 29 02:33:51 2011 +0200
+++ b/backend/couchdb/Feed.py	Mon Aug 29 02:41:24 2011 +0200
@@ -22,7 +22,7 @@
     def incrementNextUpdateDate(self):
         updateInterval = self._updateIntervalInSeconds()
         delta = timedelta(seconds=updateInterval)
-        self.next_update = self.next_update + delta
+        self.next_update = datetime.now() + delta
 
     def _updateIntervalInSeconds(self):
         return self.update_interval * 60