change time regex to catch missing 'm'
This commit is contained in:
parent
39c2ed076f
commit
d76034aa63
|
@ -130,7 +130,7 @@ def import_trains():
|
||||||
json.dump(errors, errors_file, indent=2)
|
json.dump(errors, errors_file, indent=2)
|
||||||
errors_file.close()
|
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):
|
def getHours(s):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user