Triples bug fix
This commit is contained in:
parent
a9ade106a5
commit
9a1e98db96
@ -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
|
||||
|
||||
Loading…
Reference in New Issue
Block a user