From 5959fe5dafdfd29e5a5604af3c37ba04c7a19b93 Mon Sep 17 00:00:00 2001 From: DarkPhoenix Date: Tue, 14 Apr 2020 15:28:40 +0300 Subject: [PATCH] Ignore case when searching for implant sets to allow some inconsistencies on CCP side --- db_update.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/db_update.py b/db_update.py index e6a4d83e1..89a9183b2 100644 --- a/db_update.py +++ b/db_update.py @@ -472,7 +472,7 @@ def update_db(): continue typeName = row.get('typeName', '') # Regular sets matching - m = re.match('(?P(High|Mid|Low)-grade) (?P\w+) (?P(Alpha|Beta|Gamma|Delta|Epsilon|Omega))', typeName) + m = re.match('(?P(High|Mid|Low)-grade) (?P\w+) (?P(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