diff options
Diffstat (limited to 'scrap')
-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 |