changeset 240:1b98925facf6

Bugfix: use the existing _retrieveEntriesForSelectedFeed method to retrieve all articles when deleting a feed
author Dirk Olmes <dirk@xanthippe.ping.de>
date Tue, 28 Apr 2015 02:23:44 +0200
parents a15b3ee791a1
children e0e7459556bc
files backend/couchdb/CouchDbBackend.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/backend/couchdb/CouchDbBackend.py	Sat Apr 25 04:10:12 2015 +0200
+++ b/backend/couchdb/CouchDbBackend.py	Tue Apr 28 02:23:44 2015 +0200
@@ -84,7 +84,7 @@
         feed.store(self.database)
 
     def deleteSelectedFeed(self):
-        viewResults = self.database.view(CouchDb.feedEntriesByFeed(), key=self.selectedFeed.id)
+        viewResults = self._retrieveEntriesForSelectedFeed(False)
         for row in viewResults:
             del self.database[row.id]
         del self.database[self.selectedFeed.id]