Skip to content

Commit

Permalink
Move cutoff to include all reserves
Browse files Browse the repository at this point in the history
  • Loading branch information
tienne-B committed Sep 14, 2024
1 parent 082d3d8 commit e70ae8a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tabbycat/breakqual/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@ def filter_eligible_teams(self):
breakingteam__remark__isnull=False,
).exclude(Q(breakingteam__remark__exact='') | Q(breakingteam__remark=BreakingTeam.Remark.RESERVE))
different_break_teams = self.team_queryset.exclude(
breakingteam__remark=BreakingTeam.Remark.INELIGIBLE,
breakingteam__remark__in=[BreakingTeam.Remark.INELIGIBLE, BreakingTeam.Remark.RESERVE],
breakingteam__break_category__priority__gt=self.category.priority,
).filter(
breakingteam__break_category__priority__gt=self.category.priority,
Expand Down Expand Up @@ -211,9 +211,9 @@ def add_reserve_teams(self):
last_rank = cur_rank
continue
if number_to_add <= 0 and cur_rank != last_rank:
self.hide_excluded_teams_from = cur_rank
break
self.excluded_teams[tsi] = BreakingTeam.Remark.RESERVE
self.hide_excluded_teams_from = cur_rank
number_to_add -= 1

def populate_database(self):
Expand Down

0 comments on commit e70ae8a

Please sign in to comment.