comparison backend/couchdb/CouchDbBackend.py @ 236:c5250fcc3881

remove a workaround along with its wrong explanation
author Dirk Olmes <dirk@xanthippe.ping.de>
date Mon, 26 Jan 2015 13:43:38 +0100
parents e34c53a3e407
children 1b98925facf6
comparison
equal deleted inserted replaced
235:a34cb404cef3 236:c5250fcc3881
47 def _getUnreadFeeds(self): 47 def _getUnreadFeeds(self):
48 viewResults = self.database.view(CouchDb.feedsWithUnreadEntries(), group=True) 48 viewResults = self.database.view(CouchDb.feedsWithUnreadEntries(), group=True)
49 feedsWithUnreadEntries = [] 49 feedsWithUnreadEntries = []
50 for row in viewResults: 50 for row in viewResults:
51 feed = Feed.load(self.database, row["key"]) 51 feed = Feed.load(self.database, row["key"])
52 # see https://issues.apache.org/jira/browse/COUCHDB-1279 52 feedsWithUnreadEntries.append(feed)
53 # it's possible that the view references documents that have already been deleted
54 if feed is not None:
55 feedsWithUnreadEntries.append(feed)
56 return feedsWithUnreadEntries 53 return feedsWithUnreadEntries
57 54
58 def _retrieveEntriesForSelectedFeed(self, hideReadEntries): 55 def _retrieveEntriesForSelectedFeed(self, hideReadEntries):
59 viewResults = FeedEntry.entriesForFeed(self.selectedFeed, self.database) 56 viewResults = FeedEntry.entriesForFeed(self.selectedFeed, self.database)
60 if hideReadEntries: 57 if hideReadEntries: