Skip to content
Snippets Groups Projects
Commit dec8e194 authored by Caner Candan's avatar Caner Candan
Browse files

* ucoin/pks/__init__.py: added op support in lookup request

parent f3a13fa3
No related branches found
No related tags found
No related merge requests found
......@@ -40,7 +40,11 @@ class Lookup(PKS):
assert 'search' in kwargs
assert 'op' in kwargs
return self.requests_get('/lookup', **kwargs)
r = self.requests_get('/lookup', **kwargs)
if kwargs['op'] == 'get': return r.text
return r.json()
class All(PKS):
"""GET all the received public keys."""
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment