This commit is contained in:
Ilya Shurupov 2024-12-16 19:26:51 +03:00
parent b2e582c566
commit d8929d3064
5 changed files with 139 additions and 3 deletions

View file

@ -1,5 +1,5 @@
from DataBase import *
from SpotifyWebAPI import fetch_data
from SpotifyWebAPI import fetch_data, update_access_token
import cmd
playlists = get_data('playlistTracks')
@ -167,6 +167,7 @@ class Interpreter(cmd.Cmd):
def do_fetch(self, arg):
"""Fetch all spotify data"""
try:
update_access_token()
fetch_data()
global playlists, top_artists, top_tracks, user_tracks