From ae46593ec976ed652528bb42ef7887996c27b36e Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 19 Mar 2017 17:24:10 -0500 Subject: [PATCH] Correct issue where a member couldn't be found due to comparing a string and an int --- cogs/utils/utilities.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cogs/utils/utilities.py b/cogs/utils/utilities.py index d48e0e3..3e30643 100644 --- a/cogs/utils/utilities.py +++ b/cogs/utils/utilities.py @@ -115,9 +115,9 @@ async def update_records(key, winner, loser): loser_stats = {} try: for stat in matches: - if stat.get('member_id') == winner.id: + if stat.get('member_id') == str(winner.id): winner_stats = stat - elif stat.get('member_id') == loser.id: + elif stat.get('member_id') == str(loser.id): loser_stats = stat except TypeError: pass