diff --git a/tabbycat/options/preferences.py b/tabbycat/options/preferences.py index 6b669766736..a52c64372bd 100644 --- a/tabbycat/options/preferences.py +++ b/tabbycat/options/preferences.py @@ -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")), @@ -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.")