mfgarvin / DOC_Mapboard

3 stars 0 forks source link

Bug: ValueError for midnight values #1

Closed mfgarvin closed 2 years ago

mfgarvin commented 2 years ago

Times are referenced in this project in the 24-hour time format (eg. 1500). Times not in this format throw errors. There's a limitation within python dictionaries that disallows leading zeros on an integer (e.g. 0900 is not valid, while 900 is). Due to both of these, times that start in the 12am hour crash the code (A time listed as 0, to fulfill the dictionary limitation, is not in the valid 24h format)

https://github.com/mfgarvin/DOC_Mapboard/blob/a996d2e5a011f5bbe0ac67a50d4ef4e67a4a4125/main.py#L172

mfgarvin commented 2 years ago

Some implementation of zfill might help with this