Beispiel #1
0
 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')
Beispiel #2
0
 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')
Beispiel #3
0
 def remove_wish(self, title, author):
     SqliteDB.del_value_from('wishlist', title, 'title')
     self.data.remove({'title': title, 'author': author})