    game_status.bbref_game_id = bbref_game_id
    if bb_game_id:
        game_status.bb_game_id = bb_game_id
    game_status.scrape_status_date_id = date_status.id
    game_status.season_id = date_status.season_id
    return game_status


def create_pitch_app_status_record(bbref_game_id, bb_game_id, game_status, player_id, pitch_app_id):
    pitch_app_status = db.PitchAppScrapeStatus()
    pitch_app_status.pitcher_id_mlb = player_id.mlb_id