Browse Source

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.
master
Chris Shyi 7 years ago
parent
commit
4066c96c94
  1. 4
      spotifyvis/views.py

4
spotifyvis/views.py

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

Loading…
Cancel
Save