From aeedcd4c8c9f61e3d06ae9ac0b1600b267b4d66c Mon Sep 17 00:00:00 2001 From: Jan Bollacke Date: Mon, 1 May 2017 09:14:45 +0200 Subject: [PATCH] DescriptionList: Simplify conversion of keys to lowercase This reverts commit 418411e09cfd4dd97e3ec2e1aa7d0c175ec6fdd7. --- includes/descriptionList.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/includes/descriptionList.py b/includes/descriptionList.py index fba47f1..848d39a 100644 --- a/includes/descriptionList.py +++ b/includes/descriptionList.py @@ -45,11 +45,7 @@ def loadCSV(typ, idField): # only import rows with an integer as id, allow subrics though if re.match("^[0-9]+[A-D]?$", row[idField], re.IGNORECASE): try: - if len(row[idField]) > 7: - if row[idField][7].isupper(): - tmp = row[idField].lower() - row[idField] = tmp; - resultList[row[idField]] = stringConverter.convertToUTF8(row['description']) + resultList[row[idField].lower()] = stringConverter.convertToUTF8(row['description']) except: # skip entry in case of an exception pass