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

Had general/game status backwards, switched that

This commit is contained in:
phxntxm 2016-07-13 22:45:05 -05:00
parent e0f754d7d9
commit 158c041712

View file

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