comparison 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
comparison
equal deleted inserted replaced
239:a15b3ee791a1 240:1b98925facf6
82 for key in changes.keys(): 82 for key in changes.keys():
83 feed[key] = changes[key] 83 feed[key] = changes[key]
84 feed.store(self.database) 84 feed.store(self.database)
85 85
86 def deleteSelectedFeed(self): 86 def deleteSelectedFeed(self):
87 viewResults = self.database.view(CouchDb.feedEntriesByFeed(), key=self.selectedFeed.id) 87 viewResults = self._retrieveEntriesForSelectedFeed(False)
88 for row in viewResults: 88 for row in viewResults:
89 del self.database[row.id] 89 del self.database[row.id]
90 del self.database[self.selectedFeed.id] 90 del self.database[self.selectedFeed.id]
91 91
92 def entriesForFeed(self, feed, hideReadEntries): 92 def entriesForFeed(self, feed, hideReadEntries):