check existence of maker_id

This commit is contained in:
Bui 2019-11-25 01:24:06 +00:00
parent 8cc1b940e1
commit 0ac923d245

2
app.py
View File

@ -130,7 +130,7 @@ def route_api_songs():
maker = None
if song[17] == 0:
maker = 0
elif song[17] > 0:
elif song[17] and song[17] > 0:
maker = {'name': song[18], 'url': song[19], 'id': song[17]}
songs_out.append({