Commit 4f34ff3d authored by Ktulho's avatar Ktulho 👶🏻

fix sorting in the barracks

parent 5490d951
......@@ -33,8 +33,7 @@ def __showActiveTankmen(base, self, criteria):
sorting_criteria = cfg_barracks.get('sorting_criteria', False)
if not sorting_criteria:
return base(self, criteria)
for _criteria in sorting_criteria:
_criteria.replace(' ', '')
sorting_criteria = [criterion.replace(' ', '') for criterion in sorting_criteria]
_nations = cfg_barracks.get('nations_order', False)
if _nations:
nations_order = {nations.INDICES[name]: idx for idx, name in enumerate(_nations)}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment