diff --git a/app/routers_v2/battingcardratings.py b/app/routers_v2/battingcardratings.py index 0443e5d..e3b166c 100644 --- a/app/routers_v2/battingcardratings.py +++ b/app/routers_v2/battingcardratings.py @@ -459,7 +459,7 @@ async def post_calc_basic(token: str = Depends(oauth2_scheme)): raw_data['Rating'] = round(rank_series * 100) output = raw_data[[ - 'player_name', 'Rating', 'Contact R', 'Contact L', 'Power R', 'Power L', 'Vision', 'Speed', + 'player_id', 'player_name', 'Rating', 'Contact R', 'Contact L', 'Power R', 'Power L', 'Vision', 'Speed', 'Steal', 'Reaction', 'Arm', 'Fielding', 'hand', 'cardset_name' ]] diff --git a/app/routers_v2/pitchingcardratings.py b/app/routers_v2/pitchingcardratings.py index 5a952c2..513a773 100644 --- a/app/routers_v2/pitchingcardratings.py +++ b/app/routers_v2/pitchingcardratings.py @@ -358,8 +358,8 @@ async def post_calc_basic(token: str = Depends(oauth2_scheme)): raw_data['Rating'] = round(rank_series * 100) output = raw_data[[ - 'player_name', 'Rating', 'Control R', 'Control L', 'Stuff R', 'Stuff L', 'Stamina', 'Fielding', 'H/9', 'K/9', - 'BB/9', 'HR/9', 'hand', 'cardset_name' + 'player_id', 'player_name', 'Rating', 'Control R', 'Control L', 'Stuff R', 'Stuff L', 'Stamina', 'Fielding', + 'H/9', 'K/9', 'BB/9', 'HR/9', 'hand', 'cardset_name' ]] csv_file = pd.DataFrame(output).to_csv(index=False) diff --git a/app/routers_v2/teams.py b/app/routers_v2/teams.py index 50799de..68bdc9a 100644 --- a/app/routers_v2/teams.py +++ b/app/routers_v2/teams.py @@ -357,7 +357,7 @@ async def get_team_lineup(team_id: int, difficulty_name: str, pitcher_name: str, player_names.append(x.player.p_name) break - elif difficulty_name in ['major-league', 'tens', 'hall-of-fame']: + elif difficulty_name in ['major-league', 'flashback', 'hall-of-fame']: logging.debug(f'entering difficulty: {difficulty_name}') eligible_cards = get_scouting_dfs(legal_players, position) logging.debug(f'got dataframe:\n{eligible_cards}') @@ -687,7 +687,7 @@ async def get_team_record(team_id: int, season: int): 'minor-league': copy.deepcopy(template), 'major-league': copy.deepcopy(template), 'hall-of-fame': copy.deepcopy(template), - 'tens': copy.deepcopy(template) + 'flashback': copy.deepcopy(template) } for game in all_games: