Changed signature of get_audio_features() for consistency

Switched around the ordering of the parameters so that they are
consistent with other data acquisition helper functions.
This commit is contained in:
Chris Shyi
2018-05-20 16:35:19 -04:00
parent a5780387e1
commit 4066c96c94

View File

@@ -182,12 +182,12 @@ def parse_library(headers, tracks):
# }}} parse_library #
def get_audio_features(track_id, headers):
def get_audio_features(headers, track_id):
"""Returns the audio features of a soundtrack
Args:
track_id: the id of the soundtrack, needed to query the Spotify API
headers: headers containing the API token
track_id: the id of the soundtrack, needed to query the Spotify API
Returns:
A dictionary with the features as its keys