diff --git a/load_spreadsheet.py b/load_spreadsheet.py index 412d7e1..0f42369 100755 --- a/load_spreadsheet.py +++ b/load_spreadsheet.py @@ -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