Update calcs_batter.py

Tweak steal ratings
This commit is contained in:
Cal Corum 2023-02-24 11:55:03 -06:00
parent dbdd1c7fcb
commit da4610817e

View File

@ -153,13 +153,15 @@ def stealing(chances: int, sb2s: int, cs2s: int, sb3s: int, cs3s: int, season_pc
if st_low >= st_high - 3:
if st_high == 0:
st_low = 0
st_jump = 0
elif st_high <= 3:
st_high = 4
st_low = 1
else:
st_low = st_high - 3
if ((st_high - 7) > st_low) and st_high > 7:
st_low = st_high - 7
# if ((st_high - 7) > st_low) and st_high > 7:
# st_low = st_high - 7
return round(st_low), round(st_high), st_auto, st_jump