diff --git a/includes/descriptionList.py b/includes/descriptionList.py index 7e959b7..e9252b3 100644 --- a/includes/descriptionList.py +++ b/includes/descriptionList.py @@ -43,7 +43,7 @@ def loadCSV(typ, idField): for row in reader: logging.debug(row) # only import rows with an integer as id, allow subrics though - if re.match("^[0-9]+[A-D]?$", idField, re.IGNORECASE): + if re.match("^[0-9]+[A-D]?$", row[idField], re.IGNORECASE): try: resultList[row[idField]] = stringConverter.convertToUTF8(row['description']) except: