Skip to content

Commit

Permalink
Do not coerce IDs to integers. Closes #200.
Browse files Browse the repository at this point in the history
  • Loading branch information
audy authored and polyatail committed Feb 21, 2019
1 parent 42e04a5 commit 5b2f878
Show file tree
Hide file tree
Showing 3 changed files with 2,010 additions and 4 deletions.
4 changes: 1 addition & 3 deletions onecodex/vendored/potion_client/resource.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,7 @@ def __init__(self, uri=None, **kwargs):
@property
def id(self):
if self._uri is not None:
id_ = self._uri[self._uri.rfind('/') + 1:]
if id_.isdigit():
return int(id_)
id_ = self._uri[self._uri.rfind("/") + 1:]
return id_
return None

Expand Down
Loading

0 comments on commit 5b2f878

Please sign in to comment.