mirror of
https://github.com/Alvin-Zilverstand/novatorem.git
synced 2026-03-06 21:29:50 +01:00
Fix referencing
This commit is contained in:
@@ -79,10 +79,10 @@ def makeSVG(data):
|
|||||||
|
|
||||||
if data == {}:
|
if data == {}:
|
||||||
#contentBar = ""
|
#contentBar = ""
|
||||||
recentlyPlayed = recentlyPlayed()
|
recentlyPlays = recentlyPlayed()
|
||||||
recentLength = len(recentlyPlayed["items"])
|
recentLength = len(recentlyPlays["items"])
|
||||||
itemIndex = random.randint(0, recentLength - 1)
|
itemIndex = random.randint(0, recentLength - 1)
|
||||||
item = recentlyPlayed["items"][itemIndex]["track"]
|
item = recentlyPlays["items"][itemIndex]["track"]
|
||||||
else:
|
else:
|
||||||
item = data["item"]
|
item = data["item"]
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user