From d6eeb29c68e3badc533489ae100d6c7672467768 Mon Sep 17 00:00:00 2001 From: nil0j Date: Wed, 25 Sep 2024 15:57:54 +0200 Subject: fix ignoring json --- scrap/albums.py | 2 +- scrap/main.py | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'scrap') 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 -- cgit v1.2.3