cowinapi / developer.cowin

This group is created to facilitate technical and integration discussions related to cowin platform. API related contents can be obtained at API setu portal https://apisetu.gov.in/public/marketplace/api/cowin
115 stars 30 forks source link

Meaning of Green 0 and Booked (Red) due to new updation #227

Open conid4all opened 3 years ago

conid4all commented 3 years ago

As cowin portal updated something in Server. the app showing for a center two value one in red (booked) and other zero in (green). Why clicking on green, next windows comes to book slot of time and filing of captcha. But no such booking is taking place. Moreover, before login cowin portal, search results are different than after login for a same time and area. Why so ?

Please guide

rohandhamapurkar commented 3 years ago

As per my personal experience sometimes there is some cached response (old data) on the website when using the search, that is why there is a difference between search results after logging in.

conid4all commented 3 years ago

Okay thanks. But, Two entries i.e. Zero in Green and Booked in red, for a same slot is due to cached repose or what. Is Zero in Green bookable slot or not.

rohandhamapurkar commented 3 years ago

Sorry, I have no clue about the green/red issue.

conid4all commented 3 years ago

image

this the screen shot

sidpagariya commented 3 years ago

This is likely caused due to the addition of the new fields, available_capacity_dose1 and available_capacity_dose2. Both of these added together will now be represented in available_capacity and so if the person is registering for dose 1 but available_capacity_dose1 == 0 and available_capacity_dose2 != 0, this might not be properly handled on the website since the logic might just be that if available_capacity > 0 then make it green, but the 0 is shown by referencing the two new fields.