From 2a502ff92cbd2582a831a740ac8f46f2eae1d0f3 Mon Sep 17 00:00:00 2001 From: phxntxm Date: Wed, 13 Jul 2016 22:46:58 -0500 Subject: [PATCH] Removed searching for kill/death ratio when searching for a hero --- cogs/overwatch.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cogs/overwatch.py b/cogs/overwatch.py index 4740ba7..773ad6d 100644 --- a/cogs/overwatch.py +++ b/cogs/overwatch.py @@ -47,13 +47,14 @@ class Overwatch: fmt = "Kills: {}".format(int(g_stats['eliminations'])) fmt += "\nDeaths: {}".format(int(g_stats['deaths'])) - fmt += "\nKill/Death Ratio: {}".format(g_stats['kpd']) if hero == "": + fmt += "\nKill/Death Ratio: {}".format(g_stats['kpd']) fmt += "\nWins: {}".format(o_stats['wins']) fmt += "\nLosses: {}".format(o_stats['losses']) d = divmod(g_stats['time_played'], 24) fmt += "\nTime Played: {} days {} hours".format(int(d[0]), int(d[1])) else: + fmt += "\nWin Percentage: {}".format(g_stats['win_percentage']) fmt += "\nTime Played: {}".format(g_stats['time_played']) for i, r in data['hero_stats'].items(): fmt += "\n{}: {}".format(i.replace("_", " ").title(), r)