Skip to content

Commit

Permalink
correcrtly calculate the difference of sets in lottery
Browse files Browse the repository at this point in the history
  • Loading branch information
SamLR committed May 29, 2024
1 parent 7f49a5d commit b6666d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cfp/lottery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def run_lottery(ticketed_proposals, dry_run=False):
db.session.flush()
refresh_states()

losing_ticket_holders = all_lottery_ticket_holders = {t.user for t in winning_tickets}
losing_ticket_holders = all_lottery_ticket_holders - {t.user for t in winning_tickets}
app.logger.info(f"people who didn't win a ticket are: {losing_ticket_holders}")

# Email winning tickets here
Expand Down

0 comments on commit b6666d0

Please sign in to comment.