Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add draw pullup penalty preference. #2581

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions tabbycat/options/preferences.py
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,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 @@ -288,6 +289,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