Mercurial > hg > Feedworm
diff backend/couchdb/CouchDbBackend.py @ 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 | c5250fcc3881 |
children | 8e73a8ae863f |
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]