Skip to content

Commit

Permalink
fix bug with id's showing up for names
Browse files Browse the repository at this point in the history
  • Loading branch information
GregHilmes committed Jul 26, 2018
1 parent 71aac46 commit cb32d87
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pokebase/interface.py
Expand Up @@ -20,7 +20,7 @@ def _make_obj(obj):
if isinstance(obj, dict):
if 'url' in obj.keys():
url = obj['url']
id_ = url.split('/')[-2] # ID of the data.
id_ = int(url.split('/')[-2]) # ID of the data.
endpoint = url.split('/')[-3] # Where the data is located.
return APIResource(endpoint, id_, lazy_load=True)

Expand Down

0 comments on commit cb32d87

Please sign in to comment.