Update card_output.py
Added slash line logging
This commit is contained in:
parent
ff170787e4
commit
2fb3a65ddd
@ -155,6 +155,9 @@ async def main(argv):
|
|||||||
ops_vr = vr_ratings.obp + vr_ratings.slg
|
ops_vr = vr_ratings.obp + vr_ratings.slg
|
||||||
total_ops = (ops_vl + ops_vr + min(ops_vl, ops_vr)) / 3
|
total_ops = (ops_vl + ops_vr + min(ops_vl, ops_vr)) / 3
|
||||||
rarity = get_batter_rarity(total_ops)
|
rarity = get_batter_rarity(total_ops)
|
||||||
|
logging.info(
|
||||||
|
f'player: {player.name} / ops_vl: {ops_vl} / ops_vr: {ops_vr} / total_ops: {total_ops}'
|
||||||
|
)
|
||||||
|
|
||||||
this_json = [
|
this_json = [
|
||||||
player.sba_id, player.name, None, player.fg_id, player.br_id, None, None, None, cardset.id, rarity, None
|
player.sba_id, player.name, None, player.fg_id, player.br_id, None, None, None, cardset.id, rarity, None
|
||||||
@ -242,6 +245,9 @@ async def main(argv):
|
|||||||
ops_vr = vr_ratings.obp + vr_ratings.slg
|
ops_vr = vr_ratings.obp + vr_ratings.slg
|
||||||
total_ops = (ops_vl + ops_vr + min(ops_vl, ops_vr)) / 3
|
total_ops = (ops_vl + ops_vr + min(ops_vl, ops_vr)) / 3
|
||||||
rarity = get_pitcher_rarity(total_ops, this_data.starter_rating)
|
rarity = get_pitcher_rarity(total_ops, this_data.starter_rating)
|
||||||
|
logging.info(
|
||||||
|
f'player: {player.name} / ops_vl: {ops_vl} / ops_vr: {ops_vr} / total_ops: {total_ops}'
|
||||||
|
)
|
||||||
|
|
||||||
this_json = [
|
this_json = [
|
||||||
player.sba_id, player.name, None, player.fg_id, player.br_id, None, None, None, cardset.id,
|
player.sba_id, player.name, None, player.fg_id, player.br_id, None, None, None, cardset.id,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user