Skip to content

Commit 5d6f2fd

Browse files
committed
feat: tp2 check, add case insensitive
1 parent a9f1778 commit 5d6f2fd

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

scripts/check_mods_json.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,12 @@ def main():
103103

104104
# check tp2
105105
if mod["tp2"] not in ("", "n/a", "non-weidu"):
106-
if mod["tp2"] in tp2s:
106+
tp2_lower = mod["tp2"].lower()
107+
if tp2_lower in tp2s:
107108
print("🟡 TP2 doublon →", mod["tp2"])
108109
nb_warnings += 1
109110
else:
110-
tp2s.add(mod["tp2"])
111+
tp2s.add(tp2_lower)
111112

112113
# check languages
113114
for lang in set(mod["languages"]) - language_flags.keys():

0 commit comments

Comments
 (0)