changeset 172:214addba1f93

always return an int value for daysToKeepFeedEntries
author dirk
date Fri, 09 Sep 2011 17:17:39 +0200
parents 27be2a5f9c10
children 3bcf39181f6e
files backend/couchdb/Preferences.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/couchdb/Preferences.py	Fri Sep 09 16:34:02 2011 +0200
+++ b/backend/couchdb/Preferences.py	Fri Sep 09 17:17:39 2011 +0200
@@ -78,7 +78,8 @@
         self._setDocumentValue(HIDE_READ_FEED_ENTRIES, flag)
 
     def daysToKeepFeedEntries(self):
-        return self._documentValue(DAYS_TO_KEEP_FEED_ENTRIES, 90)
+        value = self._documentValue(DAYS_TO_KEEP_FEED_ENTRIES, 90)
+        return int(value)
 
     def setDaysToKeepFeedEntries(self, days):
         self._setDocumentValue(DAYS_TO_KEEP_FEED_ENTRIES, days)