horrible bug with negative times fixed

pull/97/head
Christopher Usher 6 years ago
parent e32ee0e1e9
commit c7d4df6400

@ -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