diff backend/sqlalchemy/SqlAlchemyBackend.py @ 173:3bcf39181f6e

pull the calculation of the epxire date up into AbstractBackend
author dirk
date Fri, 09 Sep 2011 17:19:16 +0200
parents f4708d38419c
children 7157bfd3f4d4
line wrap: on
line diff
--- a/backend/sqlalchemy/SqlAlchemyBackend.py	Fri Sep 09 17:17:39 2011 +0200
+++ b/backend/sqlalchemy/SqlAlchemyBackend.py	Fri Sep 09 17:19:16 2011 +0200
@@ -4,7 +4,6 @@
 from FeedUpdater import FeedUpdater
 from Preferences import Preferences
 from backend.AbstractBackend import AbstractBackend
-from datetime import datetime, timedelta
 from sqlalchemy.orm import joinedload
 from sqlalchemy.sql import and_
 import Database
@@ -119,9 +118,3 @@
         )
         deleteStatement.execute()
         self.session.commit()
-
-    def _calculateExpireDate(self):
-        now = datetime.now()
-        daysToKeepFeedEntries = self.prefs.daysToKeepFeedEntries()
-        delta = timedelta(days=daysToKeepFeedEntries)
-        return now - delta