Commit 8430dbc0 authored by Gabriel Foley's avatar Gabriel Foley

getGODef in webservice now only returns a single GO term

parent 8fa94535
......@@ -185,7 +185,9 @@ def getGODef(goterm):
entry = {'id': None, 'name': None, 'aspect': None}
data = urllib.request.urlopen(url).read().decode("utf-8")
ret = json.loads(data)
for row in ret['results']:
if row['id'] == goterm:
for key in entry:
entry[key] = row[key]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment