Update get_pro_names.py

This commit is contained in:
oldnapalm
2024-02-29 18:50:17 -03:00
parent 59f220c99d
commit 291af9d685
+2 -3
View File
@@ -121,10 +121,9 @@ def get_pros(url, male, get_jersey, get_equipment, team_abbrv):
return data
tree = ET.parse('../cdn/gameassets/GameDictionary.xml')
root = tree.getroot()
tree = ET.fromstring(urllib.request.urlopen('http://cdn.zwift.com/gameassets/GameDictionary.xml').read())
jerseys = {}
for x in root.findall("./JERSEYS/JERSEY"):
for x in tree.findall("./JERSEYS/JERSEY"):
jerseys[x.get('name')] = int(x.get('signature'))
def main(argv):