Skip to content

Commit

Permalink
Merge pull request #1685 from crablab/fix/limit-lt-slots
Browse files Browse the repository at this point in the history
Limit Lightning Talk Slots
  • Loading branch information
jellybob authored May 28, 2024
2 parents c53658e + 1639cbf commit 27689d8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions models/cfp.py
Original file line number Diff line number Diff line change
Expand Up @@ -951,6 +951,9 @@ def get_remaining_lightning_slots(cls):
)
.filter(cls.state != "withdrawn")
.group_by(cls.session)
# This is a horrible hack but we need to limit the LT slots for now
# and they have been preseeded as 12 in the DB (which is more than we can fit)
.limit(6)
.all()
}
return {day: (count - day_counts.get(day, 0)) for (day, count) in slots.items()}
Expand Down

0 comments on commit 27689d8

Please sign in to comment.