diff options
author | nil0j <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-25 15:57:54 +0200 |
---|---|---|
committer | nil0j <nil.jimeno@estudiant.fjaverianas.com> | 2024-09-25 15:57:54 +0200 |
commit | d6eeb29c68e3badc533489ae100d6c7672467768 (patch) | |
tree | 7351c8699da0f57bc4a956662edbe6c239b26242 | |
parent | bd96e6ec555c63ec6b24aaa681e9f02576551a27 (diff) |
fix ignoring json
-rw-r--r-- | scrap/albums.py | 2 | ||||
-rw-r--r-- | scrap/main.py | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/scrap/albums.py b/scrap/albums.py index 791b962..7243c59 100644 --- a/scrap/albums.py +++ b/scrap/albums.py @@ -1,4 +1,4 @@ -album_data = [ +album_list = [ ["astrophysics", [ "apathy", "The Unending Need For Perpetual Motion", diff --git a/scrap/main.py b/scrap/main.py index eda213a..46d5853 100644 --- a/scrap/main.py +++ b/scrap/main.py @@ -1,4 +1,4 @@ -from albums import album_data +from albums import album_list import api import parser import database @@ -6,7 +6,7 @@ import database def start(): print("downloading data...") - api.download_albums(album_data) + api.download_albums(album_list) print("uploading data...") database.setup() @@ -28,7 +28,7 @@ def get_album_data(): album_data = [] artist_id = 0 - for artist in album_data: + for artist in album_list: artist_id += 1 for album in artist[1]: @@ -41,7 +41,7 @@ def get_artist_names(): artist_data = [] [artist_data.append( artist[0] - ) for artist in album_data] + ) for artist in album_list] return artist_data |