This commit is contained in:
IlyaShurupov 2024-07-08 23:24:51 +03:00
parent bb5453b59e
commit 366860a1ad

View file

@ -93,6 +93,14 @@ class Interpreter(cmd.Cmd):
"""Fetch all spotify data""" """Fetch all spotify data"""
try: try:
fetch_data() fetch_data()
global playlists, top_artists, top_tracks, user_tracks
playlists = get_data('playlistTracks')
top_artists = get_data('top_artists')
top_tracks = get_data('top_tracks')
user_tracks = get_data('tracks')
except ValueError: except ValueError:
print("Can not fetch the data.") print("Can not fetch the data.")