쿼리 줄이기
spotify api 를 통해 mysql db에 삽입하려고 한다. if artist_raw['name'] == params['q']: artist.update( { 'id': artist_raw['id'], 'name': artist_raw['name'], 'followers': artist_raw['followers']['total'], 'popularity': artist_raw['popularity'], 'url': artist_raw['external_urls']['spotify'], 'image_url': artist_raw['images'][0]['url'] } ) query = """ INSERT INTO artists (id, name, followers, popularity, url, i..
2021. 6. 23.