From 28eb6e207fd24026d78463eb24d320349a70497c Mon Sep 17 00:00:00 2001 From: Sakimori Date: Wed, 8 Sep 2021 20:19:18 -0700 Subject: [PATCH 1/2] fixed indent error, updated draftflags --- the_prestige.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/the_prestige.py b/the_prestige.py index c931cab..e151f4a 100644 --- a/the_prestige.py +++ b/the_prestige.py @@ -718,7 +718,7 @@ class DraftFlagsCommand(Command): async def execute(self, msg, command, flags): text = """Currently accepted flags: --draftsize or -d: Sets the size of each draft pool. ---minsize or -m: Sets the size at which the pool completely refreshes. +--refresh or -r: Sets the size at which the pool completely refreshes. --teamsize or -t: How big each team should be, including pitchers. --pitchercount or -p: How many pitchers each team should have. --wait or -w: Sets the timeout, in seconds, to wait for draftees to pick a player. @@ -792,9 +792,9 @@ class StartDraftCommand(Command): if mention in handle_token: handle = mention break - else: - await msg.channel.send(f"I don't recognize {handle_token}.") - return + else: + await msg.channel.send(f"I don't recognize {handle_token}.") + return team_name = content[i + 1].strip() if games.get_team(team_name): await msg.channel.send(f'Sorry {handle}, {team_name} already exists') @@ -2795,4 +2795,4 @@ async def league_subscriber_update(league, start_channel, message): else: await channel.send(message) -client.run(config()["token"]) \ No newline at end of file +client.run(config()["token"]) From 2c4b340d91d3067953f9a1b6a474effcc7feaa09 Mon Sep 17 00:00:00 2001 From: Sakimori Date: Fri, 10 Sep 2021 09:38:43 -0700 Subject: [PATCH 2/2] really allowed 0 inter-div and inter-conf games. also allowed odd conferences, i think --- simmadome/src/CreateLeague.tsx | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/simmadome/src/CreateLeague.tsx b/simmadome/src/CreateLeague.tsx index ac80796..26f1f2f 100644 --- a/simmadome/src/CreateLeague.tsx +++ b/simmadome/src/CreateLeague.tsx @@ -305,7 +305,6 @@ function validRequest(name:string, structure: LeagueStructureState, options:Leag validNumber(options.top_postseason) && validNumber(options.wildcards, 0) && - structure.subleagues.length % 2 === 0 && getDuplicateTeams(structure).size === 0 && structure.subleagues.every((subleague, si) => @@ -580,9 +579,9 @@ function LeagueOptions(props: {state: LeagueOptionsState, dispatch: React.Dispat
props.dispatch({type: 'set_intra_division_series', value: value})} showError={props.showError}/> - + props.dispatch({type: 'set_inter_division_series', value: value})} showError={props.showError}/> - + props.dispatch({type: 'set_inter_league_series', value: value})} showError={props.showError}/>
@@ -603,4 +602,4 @@ function NumberInput(props: {title: string, value: string, setValue: (newVal: st ); } -export default CreateLeague; \ No newline at end of file +export default CreateLeague;