Correct issue where a member couldn't be found due to comparing a string and an int
This commit is contained in:
parent
7d54882549
commit
ae46593ec9
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue