Resolved is a resy bot that assists in obtaining difficult or high-end reservations. Although it only works with resy, there is an opentable api in the tree.
BSD 3-Clause "New" or "Revised" License
41
stars
10
forks
source link
[BUG]: Crash on no resvervations for a given day #22
When performing a rats or rais command, if the restaurant does not offer reservations on that day(i.e. not open or not available yet), the app crashes
Steps to reproduce
A step by step of this would be pathological and more complex than a simple explanation:
Take any restaurant, and find a day on resy for which they do not have enabled(i.e. a greyed out day). Run a rats or rais command which requests this disabled day from that restaurant.
System Specs
Not needed, this will occur on any system using the app
Additional Context
I believe the issue is that the reserve api function for resy does not check if it received a list of times and immediately begins trying to reserve them. This can be solved with a simple if statement in api/resy/api.go in the reserve function.
Is there an existing issue for this bug?
Description of the bug
When performing a rats or rais command, if the restaurant does not offer reservations on that day(i.e. not open or not available yet), the app crashes
Steps to reproduce
A step by step of this would be pathological and more complex than a simple explanation:
Take any restaurant, and find a day on resy for which they do not have enabled(i.e. a greyed out day). Run a rats or rais command which requests this disabled day from that restaurant.
System Specs
Not needed, this will occur on any system using the app
Additional Context
I believe the issue is that the reserve api function for resy does not check if it received a list of times and immediately begins trying to reserve them. This can be solved with a simple if statement in api/resy/api.go in the reserve function.