# HG changeset patch # User dirk # Date 1315581459 -7200 # Node ID 214addba1f93d46dbacbade8ea2503d70092e340 # Parent 27be2a5f9c10c6d1ec9cfbf55fd7e0a1372733e7 always return an int value for daysToKeepFeedEntries diff -r 27be2a5f9c10 -r 214addba1f93 backend/couchdb/Preferences.py --- 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)