changeset 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 e8bb107a74e1
children 86f828096aaf
files backend/couchdb/Feed.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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