Commit 43bc3081 authored by Lukas Jelonek's avatar Lukas Jelonek
Browse files

Enable OMA integration into dbxref

parent 445d3d48
......@@ -29,7 +29,7 @@ def main():
print(json.dumps(documents, sort_keys=True, indent=4))
def retrieve(dbxrefs, basics, members, related):
def retrieve(dbxrefs, basics=True, members=True, related=True):
"""Retrieve json documents from OMA and parse into dbxref json format"""
resolved = dbxref.resolver.resolve(dbxrefs, check_existence=False)
documents = []
......@@ -39,7 +39,7 @@ def retrieve(dbxrefs, basics, members, related):
logger.debug('URL: %s', json_url)
r = requests.get(json_url)
logger.debug('Content: %s', r.text)
output = {}
output = {"id": entry["dbxref"]}
oma = json.loads(r.text)
if basics:
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