Rename id variable to this_id to not shadow global id() function
This commit is contained in:
parent
f4c133b4d2
commit
a56e6fcd6e
@ -86,9 +86,9 @@ class DespotifyTranslator(object):
|
||||
|
||||
def to_mopidy_id(self, spotify_uri):
|
||||
if spotify_uri not in self.uri_to_id_map:
|
||||
id = self.next_id
|
||||
this_id = self.next_id
|
||||
self.next_id += 1
|
||||
self.uri_to_id_map[spotify_uri] = id
|
||||
self.uri_to_id_map[spotify_uri] = this_id
|
||||
return self.uri_to_id_map[spotify_uri]
|
||||
|
||||
def to_mopidy_artist(self, spotify_artist):
|
||||
|
||||
Loading…
Reference in New Issue
Block a user