Skip to content

Commit

Permalink
do not coerce ids to integers
Browse files Browse the repository at this point in the history
  • Loading branch information
audy committed Feb 6, 2019
1 parent 42e04a5 commit a358b7d
Showing 1 changed file with 1 addition and 3 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

0 comments on commit a358b7d

Please sign in to comment.