This project automates the process of finding and confirming Disney World FastPasses. Using python, I can scrape data from the Disney World site, read the results, and decide whether or not to confirm that FastPass
When minHour or maxHour is set to "12PM", the checkTime function mistakenly converts it to 24. Those variables are still strings, but the if statements on lines 260 and 265 are comparing them to integers, causing the statements to be evaluated as true and adding 12. Quoting the value seems to fix, i.e. if minZone == "PM" and minHour != "12".
When minHour or maxHour is set to "12PM", the checkTime function mistakenly converts it to 24. Those variables are still strings, but the
if
statements on lines 260 and 265 are comparing them to integers, causing the statements to be evaluated as true and adding 12. Quoting the value seems to fix, i.e.if minZone == "PM" and minHour != "12"
.