triton2997 / cowin-slot-notifier

Utility that automatically alerts via email if slots are available on the CoWIN portal. Provides rich filtering by list of pincodes, type of vaccine, dose number, etc
0 stars 0 forks source link

[TASK]: Update slot retriever module to return slots for current date and next date #12

Closed triton2997 closed 3 years ago

triton2997 commented 3 years ago

Story: #9

Date: 08/07/2021

Description:

  1. CoWIN slot notifier currently returns slots for today
  2. Update it to return slots for today and tomorrow
  3. This would consist of 2 requests, one for today and one for tomorrow, and then appending the slots

Task type: Development

Estimated efforts (person hours): 2

Actual efforts (person hours):

triton2997 commented 3 years ago
  1. Created a new function findAvailabilityByDate
  2. Takes prop, district_id and date as input and returns slots for that date
  3. findAvailability function now calls findAvailabilityByDate twice, once for current date and once for next date
  4. Also added pincode and date to slot data
  5. Test scripts executed successfully on updated code