Removed searching for overall status when a hero is searched
This commit is contained in:
parent
3fa9220deb
commit
b1fb52f6b9
|
@ -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']))
|
||||
|
|
Loading…
Reference in a new issue