Skip to content

Commit

Permalink
prompt delete on genre author and label
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasesquivelgc committed Oct 22, 2023
1 parent 04ec579 commit 80c35df
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 13 deletions.
4 changes: 2 additions & 2 deletions data/albums.json
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
{"publish_date":"2009-02-03","id":"e603dc13-885b-46a7-b9a3-a858490c11f7","archived":false,"author":{"id":"b80239b3-440f-4937-a717-4e676cc604f5","first_name":"Robert","last_name":"Robertson"},"genre":{"id":"c49abd0c-4315-457a-957e-5f75eef059a7","name":"Metal"},"label":{"id":432,"title":null,"color":"Purlpe"},"on_spotify":false}
{"publish_date":"2023-02-03","id":"ce5c3f8c-950f-4f83-a346-f72453fdd8d3","archived":false,"author":{"id":"be64554f-722a-46dd-bb92-7f4d35c0e5ca","first_name":"Robert","last_name":"Robertson"},"genre":{"id":"3ec22bf2-994d-46a0-b35e-48210976b8c7","name":"Metal"},"label":{"id":768,"title":"Present Past","color":"Orange"},"on_spotify":false}
{"publish_date":"2009-02-03","id":"e603dc13-885b-46a7-b9a3-a858490c11f7","archived":false,"author":{"id":"fb903694-1dfd-4bb9-a9ae-6bb9dc8c93e8","first_name":"Robert","last_name":"Robertson"},"genre":{"id":"baeee8ec-a388-41f9-a73f-6ca15237e0c1","name":"Metal"},"label":{"id":302,"title":null,"color":"Purlpe"},"on_spotify":false}
{"publish_date":"2023-02-03","id":"ce5c3f8c-950f-4f83-a346-f72453fdd8d3","archived":false,"author":{"id":"ad60161a-d88a-4f8b-8be8-eddd661420ef","first_name":"Robert","last_name":"Robertson"},"genre":{"id":"8973ff12-fc3e-4529-b627-a130027dfcfb","name":"Metal"},"label":{"id":337,"title":null,"color":"Orange"},"on_spotify":false}
4 changes: 1 addition & 3 deletions data/authors.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
{"first_name":"Ubisoft","last_name":"","items":[]}
{"first_name":"DELETE","last_name":"THIS","items":[]}
{"first_name":"Richard","last_name":"Richardson","items":[{"id":"bd7f7162-3d16-41b8-acd3-c12d8ff36b68","class":"Book"}]}
{"first_name":"Robert","last_name":"Robertson","items":[{"id":"e603dc13-885b-46a7-b9a3-a858490c11f7","class":"MusicAlbum"},{"id":"ce5c3f8c-950f-4f83-a346-f72453fdd8d3","class":"MusicAlbum"}]}
{"first_name":"Castlevania","last_name":"","items":[{"id":"c25c9d39-cbe1-4697-a0f8-d6bdf6426736","class":"Game"}]}
{"first_name":"Kira","last_name":"","items":[{"id":"79a822aa-739b-4292-8bab-0fde8652ea29","class":"Book"}]}
2 changes: 1 addition & 1 deletion data/books.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"publisher":"Penguin","cover_state":"good","publish_date":"1987-03-23","id":"bd7f7162-3d16-41b8-acd3-c12d8ff36b68","archived":false,"author":{"id":"1891f4e6-f787-4313-b30c-596eeb9d05d6","first_name":"Richard","last_name":"Richardson"},"genre":{"id":"a775d192-2866-456c-b1ba-21e65245b40f","name":"Novel"},"label":{"id":912,"title":null,"color":"red"}}
{"publisher":"Manon","cover_state":"good","publish_date":"2121-12-12","id":"79a822aa-739b-4292-8bab-0fde8652ea29","archived":false,"author":{"id":"6de9a867-6a12-4285-b4e7-f922d1c70019","first_name":"Kira","last_name":""},"genre":{"id":"68c59454-a2ed-417d-9c49-1f4512e87270","name":"Novel"},"label":{"id":619,"title":null,"color":"Black"}}
2 changes: 1 addition & 1 deletion data/games.json
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"publish_date":"2009-02-03","archived":false,"author":{"id":"c3c92eca-c585-412d-bca4-75cc1760d532","first_name":"Castlevania","last_name":""},"genre":{"id":"fc2a0934-aa18-4299-9fe3-b20dd3c68c5b","name":"Beat em up"},"label":{"id":197,"title":null,"color":"Red"},"multiplayer":"n","last_played_at":"2023-02-03","id":"c25c9d39-cbe1-4697-a0f8-d6bdf6426736"}
{"publish_date":"2009-02-03","archived":false,"author":{"id":"4ae5540f-bc98-4d03-ad79-e3e6545a750a","first_name":"Castlevania","last_name":""},"genre":{"id":"1995d072-b64a-4b49-90b9-4c64692d7624","name":"Beat em up"},"label":{"id":846,"title":null,"color":"Red"},"multiplayer":"n","last_played_at":"2023-02-03","id":"c25c9d39-cbe1-4697-a0f8-d6bdf6426736"}
3 changes: 1 addition & 2 deletions data/genres.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
{"name":"Action","items":[]}
{"name":"Novel","items":[{"id":"bd7f7162-3d16-41b8-acd3-c12d8ff36b68","class":"Book"}]}
{"name":"Metal","items":[{"id":"e603dc13-885b-46a7-b9a3-a858490c11f7","class":"MusicAlbum"},{"id":"ce5c3f8c-950f-4f83-a346-f72453fdd8d3","class":"MusicAlbum"}]}
{"name":"Beat em up","items":[{"id":"c25c9d39-cbe1-4697-a0f8-d6bdf6426736","class":"Game"}]}
{"name":"Novel","items":[{"id":"79a822aa-739b-4292-8bab-0fde8652ea29","class":"Book"}]}
4 changes: 1 addition & 3 deletions data/labels.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{"title":"God of War","color":"Blue","items":[]}
{"title":"DELETE ME","color":"RED","items":[]}
{"title":"Name of the game","color":"red","items":[{"id":"bd7f7162-3d16-41b8-acd3-c12d8ff36b68","class":"Book"}]}
{"title":"Sound of Anemoia","color":"Purlpe","items":[{"id":"e603dc13-885b-46a7-b9a3-a858490c11f7","class":"MusicAlbum"}]}
{"title":"Castlevania 2","color":"Red","items":[{"id":"c25c9d39-cbe1-4697-a0f8-d6bdf6426736","class":"Game"}]}
{"title":"Present Past","color":"Orange","items":[{"id":"ce5c3f8c-950f-4f83-a346-f72453fdd8d3","class":"MusicAlbum"}]}
{"title":"Death Note","color":"Black","items":[{"id":"79a822aa-739b-4292-8bab-0fde8652ea29","class":"Book"}]}
1 change: 0 additions & 1 deletion modules/list_options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ def self.list_options(collection)
─║║║║║║═╣╚╝║║╔╗║║═╣║║║═╣║║║═╣╔╗║
╔╣╠╣╚╣║═╣║║║║╚╝║║═╣╚╣║═╣╚╣║═╣╚╝║
╚══╩═╩══╩╩╩╝╚══╩══╩═╩══╩═╩══╩══╝".light_blue
return
end
end
end
Expand Down
3 changes: 3 additions & 0 deletions options.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,20 +133,23 @@ def list_genres
█▀▀ █▀▀ █▄░█ █▀█ █▀▀ █▀
█▄█ ██▄ █░▀█ █▀▄ ██▄ ▄█".light_magenta
List.list_genres(@genres)
ListOptions.list_options(@genres)
end

def list_labels
puts "
█░░ ▄▀█ █▄▄ █▀▀ █░░ █▀
█▄▄ █▀█ █▄█ ██▄ █▄▄ ▄█".cyan
List.list_labels(@labels)
ListOptions.list_options(@labels)
end

def list_authors
puts "
▄▀█ █░█ ▀█▀ █░█ █▀█ █▀█ █▀
█▀█ █▄█ ░█░ █▀█ █▄█ █▀▄ ▄█".red
List.list_authors(@authors)
ListOptions.list_options(@authors)
end

def add_book
Expand Down

0 comments on commit 80c35df

Please sign in to comment.