Allow time from "Finish" field.
This commit is contained in:
parent
de62a36fa7
commit
0fe75c53f3
@ -328,7 +328,7 @@ def read_spreadsheet(spreadsheet, src=None, eventname=None, eventdate=None, even
|
|||||||
fields[i] = 'position'
|
fields[i] = 'position'
|
||||||
''' Store the index of this field for later processing '''
|
''' Store the index of this field for later processing '''
|
||||||
position_idx = i
|
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'
|
fields[i] = 'time'
|
||||||
''' Store the index of this field for later processing '''
|
''' Store the index of this field for later processing '''
|
||||||
time_idx[fields[i]] = i
|
time_idx[fields[i]] = i
|
||||||
|
Loading…
Reference in New Issue
Block a user