Mercurial > hg > Feedworm
diff backend/couchdb/CouchDbBackend.py @ 176:7001070d0bd5
clean code
author | dirk |
---|---|
date | Fri, 09 Sep 2011 18:19:01 +0200 |
parents | 57e324fa4350 |
children | a4832a180c69 |
line wrap: on
line diff
--- a/backend/couchdb/CouchDbBackend.py Fri Sep 09 18:17:57 2011 +0200 +++ b/backend/couchdb/CouchDbBackend.py Fri Sep 09 18:19:01 2011 +0200 @@ -39,10 +39,11 @@ def _getUnreadFeeds(self): viewResults = self.database.view(CouchDb.feedsWithUnreadEntries(), group=True) - feeds = [] + feedsWithUnreadEntries = [] for row in viewResults: - feeds.append(Feed.load(self.database, row["key"])) - return feeds + feed = Feed.load(self.database, row["key"]) + feedsWithUnreadEntries.append(feed) + return feedsWithUnreadEntries def _retrieveEntriesForSelectedFeed(self, hideReadEntries): # TODO how to hide read entries if requested?