mirror of
https://github.com/Jylpah/blitz-tools.git
synced 2026-10-26 19:49:52 +01:00
BattleStringCategorization(): fix init
This commit is contained in:
1 parent
058d3ad88a
commit
383e4c1dac
1 file changed
+1
-1
@@ -575,7 +575,7 @@ class BattleStringCategorization(BattleCategorization):
|
|||||||
|
|
||||||
def __init__(self, cat_key : str, title: str, params: list):
|
def __init__(self, cat_key : str, title: str, params: list):
|
||||||
super().__init__(cat_key, title)
|
super().__init__(cat_key, title)
|
||||||
if len(params) > 0:
|
if params != None and len(params) > 0:
|
||||||
width = params[0]
|
width = params[0]
|
||||||
left_align = True # align long category names left by default
|
left_align = True # align long category names left by default
|
||||||
if len(params) > 1:
|
if len(params) > 1:
|
||||||
|
|||||||
Reference in new issue
Block a user