Fix referencing

This commit is contained in:
novatorem
2020-08-23 11:11:15 -04:00
parent d65352903d
commit 91e430cc6a

View File

@@ -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"]