From f9d8c18d8df3a4c092fbc37badab0359db609115 Mon Sep 17 00:00:00 2001 From: bertieb Date: Wed, 30 Jun 2021 20:58:43 +0100 Subject: [PATCH] (June 2021) Update subs+teams, no split on space --- subs.txt | 8 +++++--- teampicker.py | 3 ++- teams.txt | 53 +++++++++++++++++++++++---------------------------- 3 files changed, 31 insertions(+), 33 deletions(-) diff --git a/subs.txt b/subs.txt index 6e8eaee..5d7c85b 100644 --- a/subs.txt +++ b/subs.txt @@ -1,6 +1,8 @@ -burgiuk -mattgamerguy666 maothecat -idiotictendencies +mattgamerguy666 costello_ +burgiuk +rarestmonkey +etho8282 +idiotictendencies ksyme99 diff --git a/teampicker.py b/teampicker.py index 1aba324..73cff47 100644 --- a/teampicker.py +++ b/teampicker.py @@ -160,7 +160,8 @@ def setup_team_board(): name = fh.readline().strip() if name == "": continue - name = name.split(' ', 1)[1] + if "donkey" in name: + name = name.split(' ', 1)[1] print("Adding {} at {},{}".format(name, TEAMCOLS[col], TEAMROWS[row])) diff --git a/teams.txt b/teams.txt index b907bb0..2b7fb4b 100644 --- a/teams.txt +++ b/teams.txt @@ -1,29 +1,24 @@ -Atlanta Hawks -Boston Celtics -Charlotte Hornets -Chicago Bulls -Cleveland Cavaliers -Dallas Mavericks -Denver Nuggets -Detroit Pistons -Golden State Warriors -Houston Rockets -Indiana Pacers -LA Clippers -LA Lakers -Miami Heat -Milwaukee Bucks -Minnesota Timberwolves -NJ Nets -NY Knicks -Orlando Magic -Philadelphia 76ers -Phoenix Suns -Portland Trailblazers -Sacramento Kings -SanAntonio Spurs -Seattle SuperSonics -Toronto Raptors -Utah Jazz -Vancouver Grizzlies -Washington Wizards +Belgium +Italy +Russia +Poland +Ukraine +Spain +France +Turkey +England +Czech Republic +Finland +Sweden +Croatia +Austria +Netherlands +Germany +Portugal +Switzerland +Denmark +Wales +North Macedonia +Hungary +Slovakia +Scotland