Commit 96e2613d authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

Provide email to EUtils

parent 87bf6938
Pipeline #77932 passed with stage
in 24 minutes and 16 seconds
......@@ -332,7 +332,7 @@ def get_taxonomy_info(taxonomy_id: str) -> dict:
:return: Taxon metadata (scientific name).
:rtype: dict
eu = EUtils()
eu = EUtils(email=settings.EUTILS_EMAIL)
r = eu.EFetch("taxonomy", taxonomy_id, retmode="dict")
scientific_name = r["TaxaSet"]["Taxon"]["ScientificName"]
return {"scientific_name": scientific_name}
Supports Markdown
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