-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
header
return value from popularity/list
API endpoint does not include a name for raw popularity data.
#875
Comments
It works with Not sure if this is helps you out, but at least helps pinpoint where the bug is. |
Thanks. Well spotted. Should be an easy fix. |
Updated the initial example to have an example consistent with what is returned when |
Looks like the issue here is from a hardcoded list of column names in the popularity controller If OZtree/controllers/popularity.py Lines 192 to 197 in 118bfba
However if OZtree/controllers/popularity.py Lines 262 to 270 in 118bfba
I thiiiink that lines 265-270 can just be deleted as they also have an unused variable that looks like it was there from some old code. |
If you hit the popularity endpoint, it does not return a header value for popularity_raw even when you request it by specifying include_raw.
For example
https://www.onezoom.org/popularity/list?otts=247341,563159,269666,504327,668392&key=0&expand_taxa=0&spread_taxa_evenly=0&taxon_names=0&include_raw=1
returns
When it should return
The text was updated successfully, but these errors were encountered: