horrible bug with negative times fixed

pull/101/head
Christopher Usher 5 years ago
parent a2e47b98f5
commit 928f9733d2

@ -27,7 +27,7 @@ def parse_bustime(bustime):
see it for detail."""
if bustime.startswith('-'):
# parse without the -, then negate it
return -parse_bustime(bustime[:1])
return -parse_bustime(bustime[1:])
parts = bustime.strip().split(':')
if len(parts) == 2:

Loading…
Cancel
Save