From 4982cf11677383a0248ef950071bc83f1a1a0527 Mon Sep 17 00:00:00 2001 From: Thomas Texier Date: Tue, 26 May 2015 18:46:28 -0400 Subject: [PATCH] Fixed artist_albums.py Was luckily working correctly, but was accessing the artist "global" variable, instead of the passed parameter. --- examples/artist_albums.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/artist_albums.py b/examples/artist_albums.py index 9c1e79b..b8b35e2 100644 --- a/examples/artist_albums.py +++ b/examples/artist_albums.py @@ -12,7 +12,7 @@ def get_artist(name): else: return None -def show_artist_albums(id): +def show_artist_albums(artist): albums = [] results = sp.artist_albums(artist['id'], album_type='album') albums.extend(results['items'])