diff --git a/batters/calcs_batter.py b/batters/calcs_batter.py index 5e67959..136552b 100644 --- a/batters/calcs_batter.py +++ b/batters/calcs_batter.py @@ -118,8 +118,9 @@ class BattingCardRatingsModel(pydantic.BaseModel): self.rem_xbh -= Decimal(self.bp_homerun + self.homerun) if szn_triples > 0 and self.rem_xbh > 0: - self.triple = sanitize_chance_output(self.rem_xbh, min_chances=0.5) - if self.rem_xbh > 0: + logging.error(f'Adding {self.rem_xbh} results to triples') + self.triple += sanitize_chance_output(self.rem_xbh, min_chances=0.5) + elif self.rem_xbh > 0: logging.error(f'Adding {self.rem_xbh} results to all other ob') # print(self) self.all_other_ob += self.rem_xbh