mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-21 02:07:06 +02:00
Fix handling of unknown Battle Modes
This commit is contained in:
1 parent
c88ff10052
commit
ba59838e21
1 file changed
+3
-1
@@ -97,7 +97,9 @@ class BattleCategorizationList():
|
||||
"""Make a list of battle modes as required for the _categorizations"""
|
||||
mode_ids = modes.values()
|
||||
id_max = max(mode_ids)
|
||||
ret_modes = ['-'] * (id_max+16) # create a list of '-' elements
|
||||
ret_modes = ['-'] * (id_max+16)
|
||||
for i in range(0, id_max+16):
|
||||
ret_modes[i] = 'room_type=' + str(i)
|
||||
|
||||
for mode in modes:
|
||||
id = modes[mode]
|
||||
|
||||
Reference in new issue
Block a user