From 56b1c2478fcd40854ce2a67ebdaae33974e4b9ce Mon Sep 17 00:00:00 2001 From: Zac Flamig Date: Wed, 13 Jun 2018 01:04:35 -0500 Subject: [PATCH] fix(did): add did --- indexclient/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/indexclient/client.py b/indexclient/client.py index 17ea7dec..e7b8455b 100644 --- a/indexclient/client.py +++ b/indexclient/client.py @@ -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. """