1
0
Fork 0
mirror of synced 2024-05-20 20:42:27 +12:00

Correct issue where a member couldn't be found due to comparing a string and an int

This commit is contained in:
Phxntxm 2017-03-19 17:24:10 -05:00
parent 7d54882549
commit ae46593ec9

View file

@ -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