Skip to content

Commit

Permalink
fix(did): add did
Browse files Browse the repository at this point in the history
  • Loading branch information
zflamig committed Jun 13, 2018
1 parent 8de9359 commit 56b1c24
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion indexclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,8 @@ def get_with_params(self, params=None):
if not response.json()['records']:
return None
json = response.json()['records'][0]
return Document(self, json=json)
did = json['did']
return Document(self, did, json=json)

def list(self, limit=float("inf"), start=None, page_size=100):
""" Returns a generator of document objects. """
Expand Down

0 comments on commit 56b1c24

Please sign in to comment.