Commit 16b09c36 authored by Maxim Schedriviy's avatar Maxim Schedriviy

Merge branch 'master' into 'master'

fix sorting in the barracks

See merge request !49
parents 5490d951 4f34ff3d
Pipeline #94830013 passed with stage
in 0 seconds
......@@ -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