Skip to content
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

make dynamic the Oregon average for grassroots funding % #103

Open
stochasticTreat opened this issue Oct 30, 2014 · 0 comments
Open

make dynamic the Oregon average for grassroots funding % #103

stochasticTreat opened this issue Oct 30, 2014 · 0 comments

Comments

@stochasticTreat
Copy link

Right now the "average for grassroots funding" is hard coded at 13%.
This number will vary a lot and it would look funny if someone goes here
http://hackoregonstaging.herokuapp.com/#/oregon
And see's a different number.
Thus, it really should be dynamically generated and not hard coded.
You can get the % by getting the JSON object from this endpoint:
http://54.213.83.132/hackoregon/http/all_oregon_sum/_/
and dividing the "total_grass_roots" field value by the "in" field value.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant