Skip to content

Commit

Permalink
Merge pull request #2581 from teymour-aldridge/draw-penalty
Browse files Browse the repository at this point in the history
  • Loading branch information
tienne-B authored Feb 9, 2025
2 parents 8ed5694 + 50e8e65 commit e31e88e
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tabbycat/options/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ class DrawOddBracket(ChoicePreference):
section = draw_rules
name = 'draw_odd_bracket'
choices = (
('pullup_lowest_ds_rank', _("Pull up from the lowest draw strength by rank")),
('pullup_top', _("Pull up from top")),
('pullup_bottom', _("Pull up from bottom")),
('pullup_middle', _("Pull up from middle")),
Expand Down Expand Up @@ -299,6 +300,15 @@ class DrawPullupRestriction(ChoicePreference):
default = 'none'


@tournament_preferences_registry.register
class DrawPullupPenalty(IntegerPreference):
help_text = _("Penalty applied when determining which teams to pull up (for minimum cost matching)")
verbose_name = _("Pullup penalty")
section = draw_rules
name = 'draw_pullup_penalty'
default = 0


@tournament_preferences_registry.register
class BPPullupDistribution(ChoicePreference):
help_text = _("In BP, how pullups are distributed. Only \"Anywhere\" is WUDC-compliant.")
Expand Down

0 comments on commit e31e88e

Please sign in to comment.