diff backend/couchdb/Preferences.py @ 172:214addba1f93

always return an int value for daysToKeepFeedEntries
author dirk
date Fri, 09 Sep 2011 17:17:39 +0200
parents 91a24f499318
children 2c91b5653878
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)