Irma-Response / irma-api

Irma Needs API, a fork of Harvey Needs
https://irma-api.herokuapp.com
GNU General Public License v3.0
9 stars 8 forks source link

accepting filter always filters by accepting=true #46

Open eliotn opened 7 years ago

eliotn commented 7 years ago

I do the following api calls:

https://irma-api.herokuapp.com/api/v1/shelters?county=Laurens&accepting=false

... "meta": { "result_count": 4, "filters": { "county": "Laurens", "accepting": "false" } }

https://irma-api.herokuapp.com/api/v1/shelters?county=Laurens&accepting=true

... "meta": { "result_count": 4, "filters": { "county": "Laurens", "accepting": "true" } }

https://irma-api.herokuapp.com/api/v1/shelters?county=Laurens

... "meta": { "result_count": 5, "filters": { "county": "Laurens" } }

For the accepting=false and accepting=true, the results are both filtered by accepting=true. The api should filter correctly by whether accepting is true or false.