Ignore case when searching for implant sets to allow some inconsistencies on CCP side

This commit is contained in:
DarkPhoenix
2020-04-14 15:28:40 +03:00
parent 649d338bb1
commit 5959fe5daf

View File

@@ -472,7 +472,7 @@ def update_db():
continue
typeName = row.get('typeName', '')
# Regular sets matching
m = re.match('(?P<grade>(High|Mid|Low)-grade) (?P<set>\w+) (?P<implant>(Alpha|Beta|Gamma|Delta|Epsilon|Omega))', typeName)
m = re.match('(?P<grade>(High|Mid|Low)-grade) (?P<set>\w+) (?P<implant>(Alpha|Beta|Gamma|Delta|Epsilon|Omega))', typeName, re.IGNORECASE)
if m:
implantSets.setdefault((m.group('grade'), m.group('set')), set()).add(row['typeID'])
# Special set matching