From 91e430cc6ab9200f845ea456c9aa97098befcf0a Mon Sep 17 00:00:00 2001 From: novatorem Date: Sun, 23 Aug 2020 11:11:15 -0400 Subject: [PATCH] Fix referencing --- api/spotify-playing.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/api/spotify-playing.py b/api/spotify-playing.py index 207975c..399419d 100644 --- a/api/spotify-playing.py +++ b/api/spotify-playing.py @@ -79,10 +79,10 @@ def makeSVG(data): if data == {}: #contentBar = "" - recentlyPlayed = recentlyPlayed() - recentLength = len(recentlyPlayed["items"]) + recentlyPlays = recentlyPlayed() + recentLength = len(recentlyPlays["items"]) itemIndex = random.randint(0, recentLength - 1) - item = recentlyPlayed["items"][itemIndex]["track"] + item = recentlyPlays["items"][itemIndex]["track"] else: item = data["item"]