Skip to content

Commit

Permalink
fix(single-mode): wrong Context.is_summer_camp for second half of august
Browse files Browse the repository at this point in the history
  • Loading branch information
NateScarlet committed Aug 23, 2021
1 parent 8e903f6 commit 6f26dd6
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions auto_derby/single_mode/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,9 +391,12 @@ def continuous_race_count(self) -> int:

@property
def is_summer_camp(self) -> bool:
if self.date[0] not in (2, 3):
return False
return self.date[1:] in ((7, 1), (7, 2), (8, 1))
return self.date[0] in (2, 3) and self.date[1:] in (
(7, 1),
(7, 2),
(8, 1),
(8, 2),
)

def expected_score(self) -> float:
import warnings
Expand Down

0 comments on commit 6f26dd6

Please sign in to comment.