Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions api/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ async def reverse_lookup_get(
)
) -> Dict[str, Dict]:
"""Returns a list of synonyms for a particular CURIE."""
return await curie_lookup(curies)
return await name_lookup(curies)


@app.get(
Expand All @@ -178,7 +178,7 @@ async def synonyms_get(
)
) -> Dict[str, Dict]:
"""Returns a list of synonyms for a particular CURIE."""
return await curie_lookup(preferred_curies)
return await name_lookup(preferred_curies)


@app.post(
Expand All @@ -195,7 +195,7 @@ async def lookup_names_post(
}),
) -> Dict[str, Dict]:
"""Returns a list of synonyms for a particular CURIE."""
return await curie_lookup(request.curies)
return await name_lookup(request.curies)


@app.post(
Expand All @@ -213,10 +213,10 @@ async def synonyms_post(
}),
) -> Dict[str, Dict]:
"""Returns a list of synonyms for a particular CURIE."""
return await curie_lookup(request.preferred_curies)
return await name_lookup(request.preferred_curies)


async def curie_lookup(curies) -> Dict[str, Dict]:
async def name_lookup(curies) -> Dict[str, Dict]:
"""Returns a list of synonyms for a particular CURIE."""
time_start = time.time_ns()
query = f"http://{SOLR_HOST}:{SOLR_PORT}/solr/name_lookup/select"
Expand Down
Loading