cowin icon indicating copy to clipboard operation
cowin copied to clipboard

Feature Request: Next available date

Open UKnowWhoIm opened this issue 3 years ago • 6 comments

Is your feature request related to a problem? Please describe. Instead of checking for each date till a week, a new feature which provides the next available date

Describe the solution you'd like Fetch center info on each date till 1 week from now or an available center has been found.

UKnowWhoIm avatar May 07 '21 04:05 UKnowWhoIm

If there is no slot in the coming week, there is very little chance that there will be in the next weeks.

I have observed this trend in some districts that I have tested, if you know some district that needs this feature, let me know.

neelpy avatar May 07 '21 05:05 neelpy

If there is no slot in the coming week, there is very little chance that there will be in the next weeks.

I meant this week. Get the first available slot this week. The API only has data for this week so there is no point looking past 7 days.

UKnowWhoIm avatar May 07 '21 05:05 UKnowWhoIm

Oh, I missed the solution part.

We can sort the available list with first available date as key. Create a PR, I will merge.

neelpy avatar May 07 '21 06:05 neelpy

Sorry, I could not add this to the previous code, and now it has been completely changed. I will try to incorporate this into the current version (you can also do this if you have time).

neelpy avatar May 15 '21 17:05 neelpy

@neelpy no issues, I'll try to make a PR once I have the time

UKnowWhoIm avatar May 16 '21 15:05 UKnowWhoIm

This feature of automatically choosing the earliest available slot will be the best as in the present case, while we are focusing on one particular date, slots are released two or three days from the selected dates which get missed.

Thank you for all the effort you have put in.

ajayap278 avatar May 19 '21 16:05 ajayap278