mirror of
https://github.com/Schrolli91/BOSWatch.git
synced 2025-12-06 07:42:03 +01:00
DescriptionList: Simplify conversion of keys to lowercase
This reverts commit 418411e09c.
This commit is contained in:
parent
418411e09c
commit
aeedcd4c8c
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue