1
0
Fork 0
mirror of synced 2024-05-19 12:02:29 +12:00

Corrected the call on general/game stats if a hero is called

This commit is contained in:
phxntxm 2016-07-13 22:44:10 -05:00
parent b1fb52f6b9
commit e0f754d7d9

View file

@ -41,7 +41,9 @@ class Overwatch:
data = json.loads(result.read().decode('utf-8'))
if hero == "":
o_stats = data['overall_stats']
g_stats = data['game_stats']
g_stats = data['general_stats']
else:
g_stats = data['game_stats']
fmt = "Kills: {}".format(int(g_stats['eliminations']))
fmt += "\nDeaths: {}".format(int(g_stats['deaths']))