get_map(): renamed, get_tank_name(): add back

This commit is contained in:
Jylpah committed 2020-10-25 16:36:11 +02:00
1 parent 0f02caa425
commit 973d6c912f
2 files changed
+11 -1

No files matched your search

+10
View File
@@ -885,6 +885,16 @@ class WG:
return cls.maps.keys()
@classmethod
def get_tank_name(cls, tank_str: str) -> str:
"""Return tank name from short tank string in replays"""
try:
return cls.tanks["userStr"][tank_str]
except:
error('Tank ' + tank_str + ' not found')
return tank_str
@classmethod
def get_tank_user_strs(cls) -> str:
return cls.tanks["userStr"].keys()