Skip to content

Commit

Permalink
fix(single-mode): wrong Context.is_summer_camp
Browse files Browse the repository at this point in the history
in first year
  • Loading branch information
NateScarlet committed Aug 22, 2021
1 parent ae40787 commit b66fdb1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions auto_derby/single_mode/context.py
Original file line number Diff line number Diff line change
Expand Up @@ -391,6 +391,8 @@ 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))

def expected_score(self) -> float:
Expand Down

0 comments on commit b66fdb1

Please sign in to comment.