From ec3fb3f959e1060023962b02c5e2f54dd8f07d6c Mon Sep 17 00:00:00 2001 From: Chris Shyi Date: Sun, 20 May 2018 16:37:02 -0400 Subject: [PATCH] Fix get_audio_features() bug Fixed bug where the parameters passed in the wrong order for get_audio_features(). --- spotifyvis/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spotifyvis/views.py b/spotifyvis/views.py index 53280e0..c55cee2 100644 --- a/spotifyvis/views.py +++ b/spotifyvis/views.py @@ -169,7 +169,7 @@ def parse_library(headers, tracks): num_samples += 1 get_track_info(track_dict['track']) # get_genre(headers, track_dict['track']['album']['id']) - audio_features_dict = get_audio_features(track_dict['id'], headers) + audio_features_dict = get_audio_features(headers, track_dict['id']) for feature, feature_data in audio_features_dict.items(): update_audio_feature_stats(feature, feature_data, num_samples) for artist_dict in track_dict['track']['artists']: