From 0f5f1f2eb6e2ba7cb4cb6813ee36a3a079369a9b Mon Sep 17 00:00:00 2001 From: Ben Brostoff Date: Mon, 29 Jan 2024 08:42:13 -0500 Subject: [PATCH] Fix linting --- draftfast/optimizer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/draftfast/optimizer.py b/draftfast/optimizer.py index 799237d..34adc1f 100644 --- a/draftfast/optimizer.py +++ b/draftfast/optimizer.py @@ -39,7 +39,10 @@ def __init__( self.lineup_constraints = lineup_constraints self.banned_for_exposure = exposure_dict.get("banned", []) self.locked_for_exposure = exposure_dict.get("locked", []) - self.custom_rules = (rule_set.custom_rules or []) + (settings.custom_rules or []) + self.custom_rules = ( + (rule_set.custom_rules or []) + + (settings.custom_rules or []) + ) self.min_teams = rule_set.min_teams or settings.min_teams self.min_matchups = rule_set.min_matchups or settings.min_matchups self.position_per_team_rules = rule_set.position_per_team_rules