change time regex to catch missing 'm'

This commit is contained in:
Sanj 2012-02-25 00:23:21 +05:30
parent 39c2ed076f
commit d76034aa63

View File

@ -130,7 +130,7 @@ def import_trains():
json.dump(errors, errors_file, indent=2)
errors_file.close()
timeRe = re.compile(r'([0-9]{1,2})h\s([0-9]{1,2})m')
timeRe = re.compile(r'([0-9]{1,2})h\s([0-9]{1,2})m?')
def getHours(s):
try: