backtrackbaba / cowin

Python wrapper for CoWin API's
MIT License
42 stars 18 forks source link

Design change separate filters api call #15

Open DragonWarrior15 opened 3 years ago

DragonWarrior15 commented 3 years ago

…updated tests isolated from api calls

all tests passed, except the first two test_get_states and test_get_districts. I manually tried to run the urls in the browser and get the similar {"message":"Forbidden"} error.

Please have a look at the function filter_centers. I might have made it a little difficult to understand and welcome your comments/suggestions to improve the same.

Now the filters available are min_age_limit, min_capacity, vaccine, and fee_type.

DragonWarrior15 commented 3 years ago

This is being covered in #17, closing the pull request.

DragonWarrior15 commented 3 years ago

reopening for comparison