1
0
Fork 0
mirror of synced 2024-05-19 20:12:30 +12:00

Removed searching for overall status when a hero is searched

This commit is contained in:
phxntxm 2016-07-13 22:43:01 -05:00
parent 3fa9220deb
commit b1fb52f6b9

View file

@ -39,7 +39,8 @@ class Overwatch:
url = base_url + "{}/heroes/{}".format(bt, hero.lower().replace('-', ''))
result = urllib.request.urlopen(url)
data = json.loads(result.read().decode('utf-8'))
o_stats = data['overall_stats']
if hero == "":
o_stats = data['overall_stats']
g_stats = data['game_stats']
fmt = "Kills: {}".format(int(g_stats['eliminations']))