gymbox-bot
gymbox-bot copied to clipboard
updated the scheduler to only book classes for the day after it is run.
fix for https://github.com/alex3165/gymbox-bot/issues/7
- when running the scheduler, classes are only booked for the following day
I've left the CLI as is. Might simplify the code a bit if we just book classes for 'tomorrow' with both the cli and the scheduler.
open to suggestions on how to improve it 👍
Hey Alex, any thoughts on this pull request? :)
Hey @tmerlet sorry for the late reply, I think we could remove all the other logic in the else statement. Only checking if the class is tomorrow is good enough in this filter. Would you mind updating it? Ideally if we could have some unit test to cover this that would be optimal but this is only optional if you have some time. Thanks for your work.
Hey @alex3165 :) I agree, it makes more sense to simplify and only have booking working for classes tomorrow only. Will give unit tests a go too.
Need more time on this...