Skip to content

Commit

Permalink
Get only one candidate specie
Browse files Browse the repository at this point in the history
  • Loading branch information
frafra committed Mar 6, 2024
1 parent e5db4fe commit 38b4304
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/webapp.py
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,10 @@ def get_species_data(species):
species_data = []
data = {
"queries": json.dumps(
{str(index): {"query": specie} for index, specie in enumerate(species)}
{
str(index): {"query": specie, "limit": 1}
for index, specie in enumerate(species)
}
)
}
response = requests.post(ENDPOINT, data=data, headers=headers).json()
Expand Down

0 comments on commit 38b4304

Please sign in to comment.