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

Removed o_stats if a hero search

This commit is contained in:
Phxntxm 2016-07-14 07:40:48 -05:00
parent e50b2fe400
commit fe14187038

View file

@ -52,11 +52,11 @@ class Overwatch:
g_stats = data['general_stats']
fmt = "\n".join("{}: {}".format(i, r) for i, r in g_stats.items() if i in check_g_stats)
if not hero == "":
fmt += "\n"
fmt += "\n".join("{}: {}".format(i, r) for i, r in data['hero_stats'].items())
fmt += "\n"
fmt += "\n".join("{}: {}".format(i, r) for i, r in o_stats.items() if i in check_o_stats)
if not hero == "":
fmt += "\n".join("{}: {}".format(i, r) for i, r in data['hero_stats'].items())
else:
fmt += "\n".join("{}: {}".format(i, r) for i, r in o_stats.items() if i in check_o_stats)
#fmt = "Kills: {}".format(int(g_stats['eliminations']))
#fmt += "\nDeaths: {}".format(int(g_stats['deaths']))