Limit Gauntlet 2 to 2 sets for AI lineups
This commit is contained in:
parent
3a943f8d56
commit
732ee9a8ca
@ -250,7 +250,7 @@ async def build_lineup(team_object: dict, game_id: int, league_name: str, vs_han
|
|||||||
elif 'gauntlet-1' in league_name:
|
elif 'gauntlet-1' in league_name:
|
||||||
set_params = copy.deepcopy(MINOR_CARDSET_PARAMS)
|
set_params = copy.deepcopy(MINOR_CARDSET_PARAMS)
|
||||||
elif 'gauntlet-2' in league_name:
|
elif 'gauntlet-2' in league_name:
|
||||||
set_params = copy.deepcopy(GAUNTLET2_PARAMS)
|
set_params = random.sample(GAUNTLET2_PARAMS, 2)
|
||||||
|
|
||||||
# Pull players sorted by current cost
|
# Pull players sorted by current cost
|
||||||
try:
|
try:
|
||||||
@ -358,7 +358,7 @@ async def get_starting_pitcher(team_object: dict, game_id: int, is_home: bool, l
|
|||||||
elif league_name == 'gauntlet-1':
|
elif league_name == 'gauntlet-1':
|
||||||
set_params = copy.deepcopy(MINOR_CARDSET_PARAMS)
|
set_params = copy.deepcopy(MINOR_CARDSET_PARAMS)
|
||||||
elif 'gauntlet-2' in league_name:
|
elif 'gauntlet-2' in league_name:
|
||||||
set_params = copy.deepcopy(GAUNTLET2_PARAMS)
|
set_params = random.sample(GAUNTLET2_PARAMS)
|
||||||
|
|
||||||
params = [
|
params = [
|
||||||
('mlbclub', team_object['lname']), ('pos_include', 'SP'), ('pos_exclude', 'RP'),
|
('mlbclub', team_object['lname']), ('pos_include', 'SP'), ('pos_exclude', 'RP'),
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user