Skip to content

Commit

Permalink
Using ID not obj
Browse files Browse the repository at this point in the history
  • Loading branch information
wrussell1999 committed May 3, 2019
1 parent 5f68a8e commit f6f9f77
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion results.py
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ async def get_winner(results_channel):
return winner_message

def check_winner_vote(winner):
if winner.id in daily_data['voters']:
if winner in daily_data['voters']:
logger.debug("Winner voted - valid")
return True
else:
Expand Down

0 comments on commit f6f9f77

Please sign in to comment.