changeset 176:7001070d0bd5

clean code
author dirk
date Fri, 09 Sep 2011 18:19:01 +0200
parents 57e324fa4350
children 98eaf0075a44
files backend/couchdb/CouchDbBackend.py
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
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?