ethanbrimhall / Disney-Fastpass-Bot

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
MIT License
36 stars 24 forks source link

checkTime function mishandles 12PM #2

Open mickeyavenue opened 5 years ago

mickeyavenue commented 5 years ago

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".