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

Discrepancy in available_capacity JSON field #234

Open
tanmoy1994 opened this issue May 16, 2021 · 3 comments
Open

Discrepancy in available_capacity JSON field #234

tanmoy1994 opened this issue May 16, 2021 · 3 comments

Comments

@tanmoy1994
Copy link

tanmoy1994 commented May 16, 2021

I get the following data from an API query, which seems incorrect:

{
   "center_id":561872,
   "name":"Apollo Gleneagles Kolkata",
   "address":"58 Canal Cirucular Road Kolkata 700054",
   "state_name":"West Bengal",
   "district_name":"Kolkata",
   "block_name":"Borough-III",
   "pincode":700054,
   "lat":22,
   "long":88,
   "from":"09:00:00",
   "to":"18:00:00",
   "fee_type":"Paid",
   "sessions":[
      {
         "session_id":"f5e7920e-f8e0-41ac-9d8e-f4f261dfd6c0",
         "date":"17-05-2021",
         "available_capacity":4,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"34fd2112-04fd-4fbc-aa50-15c06ffb1e4f",
         "date":"18-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"549f4e8b-4904-4291-949e-758e708dc1a4",
         "date":"19-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"3cc0080d-254f-4065-8cad-81bb1279f1c9",
         "date":"20-05-2021",
         "available_capacity":9,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"d3afdea9-2883-4645-8e88-db1300a49864",
         "date":"21-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      },
      {
         "session_id":"9809e1ca-3855-48bf-bca3-7f65dca6c758",
         "date":"22-05-2021",
         "available_capacity":0,
         "min_age_limit":18,
         "vaccine":"COVISHIELD",
         "slots":[
            "09:00AM-11:00AM",
            "11:00AM-01:00PM",
            "01:00PM-03:00PM",
            "03:00PM-06:00PM"
         ],
         "available_capacity_dose1":0,
         "available_capacity_dose2":0
      }
   ],
   "vaccine_fees":[
      {
         "vaccine":"COVISHIELD",
         "fee":"850"
      }
   ]
}

Note that although available_capacity is non-zero, available_capacity_dose1 and available_capacity_dose2 are 0 for all sessions.

@amanjain325
Copy link

They have deployed it yesterday with this change and As per observation, This is a bug

@Ashutosh-Karmakar
Copy link

how we get can get rid of this bug????????????

@amanjain325
Copy link

It will be done by them only.

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

3 participants