mirror of
https://github.com/krateng/maloja.git
synced 2023-08-10 21:12:55 +03:00
Fixed small bug with associated artists
This commit is contained in:
@@ -32,7 +32,7 @@ def replacedict(keys,dbport):
|
||||
response = urllib.request.urlopen("http://localhost:" + str(dbport) + "/charts/tracks?artist=" + urllib.parse.quote(keys["artist"]))
|
||||
db_data = json.loads(response.read())
|
||||
|
||||
maxbar = db_data["list"][0]["scrobbles"]
|
||||
if db_data["list"] != []: maxbar = db_data["list"][0]["scrobbles"]
|
||||
html = "<table class='list'>"
|
||||
for e in db_data["list"]:
|
||||
html += "<tr>"
|
||||
|
||||
Reference in New Issue
Block a user