Skip to content

Commit

Permalink
Allow running the lottery in 'run-lottery' state
Browse files Browse the repository at this point in the history
  • Loading branch information
SamLR committed May 29, 2024
1 parent 600d361 commit 0aff473
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apps/cfp/lottery_tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,7 @@ def lottery(dry_run):
else:
app.logger.info(f"'no-dry-run' is set, running lottery")


if get_signup_state() != "issue-lottery-tickets":
if get_signup_state() not in ["issue-lottery-tickets", "run-lottery"]:
raise Exception(f"Expected signup state to be 'issue-lottery-tickets'.")

workshops = (
Expand Down

0 comments on commit 0aff473

Please sign in to comment.