mirror of
https://github.com/yuukiwww/taiko-web.git
synced 2024-09-08 10:41:18 +02:00
check existence of maker_id
This commit is contained in:
parent
8cc1b940e1
commit
0ac923d245
2
app.py
2
app.py
@ -130,7 +130,7 @@ def route_api_songs():
|
|||||||
maker = None
|
maker = None
|
||||||
if song[17] == 0:
|
if song[17] == 0:
|
||||||
maker = 0
|
maker = 0
|
||||||
elif song[17] > 0:
|
elif song[17] and song[17] > 0:
|
||||||
maker = {'name': song[18], 'url': song[19], 'id': song[17]}
|
maker = {'name': song[18], 'url': song[19], 'id': song[17]}
|
||||||
|
|
||||||
songs_out.append({
|
songs_out.append({
|
||||||
|
Loading…
Reference in New Issue
Block a user