Allow time from "Finish" field.

This commit is contained in:
Timothy Allen 2018-11-13 21:29:32 +02:00
parent de62a36fa7
commit 0fe75c53f3

View File

@ -328,7 +328,7 @@ def read_spreadsheet(spreadsheet, src=None, eventname=None, eventdate=None, even
fields[i] = 'position'
''' Store the index of this field for later processing '''
position_idx = i
elif 'time' not in fields and re.search('^\s*(race\s*)?(finish|elapsed_?|f\S?|net|chip)?\s*(time|h:?m:?s?)', str(fields[i]), flags=re.IGNORECASE) is not None:
elif 'time' not in fields and re.search('^\s*(race\s*)?(finish|elapsed_?|f\S?|net|chip)?\s*(time|h:?m:?s?)?', str(fields[i]), flags=re.IGNORECASE) is not None:
fields[i] = 'time'
''' Store the index of this field for later processing '''
time_idx[fields[i]] = i