mirror of
https://github.com/jiojciojsioe3/a3cjroijsiojiorj.git
synced 2024-11-15 07:21:50 +08: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