def remove_shelf(self, shelf_title): for item in self.data: if item['shelf'] == shelf_title: self.data.remove(item) SqliteDB.del_value_from('shelves', shelf_title, 'shelf')
def remove_tag(self, tag_title): for item in self.data: if item['tag'] == tag_title: self.data.remove(item) SqliteDB.del_value_from('tags', tag_title, 'tag')
def remove_wish(self, title, author): SqliteDB.del_value_from('wishlist', title, 'title') self.data.remove({'title': title, 'author': author})