Jon Solow commited on
Commit
f1a728b
·
1 Parent(s): 83d4927

Set week 2 domain and roster hack from week 18

Browse files
src/domain/playoffs.py CHANGED
@@ -24,7 +24,7 @@ ROSTER_WEEK_TO_PLAYOFF_WEEK = {v: k for k, v in PLAYOFF_WEEK_TO_ROSTER_WEEK.item
24
  ROSTER_WEEK_TO_PLAYOFF_WEEK[17] = 1
25
 
26
  # TODO - remove this temp hack to get options loaded earlier in week
27
- # ROSTER_WEEK_TO_PLAYOFF_WEEK[17] = 4
28
 
29
 
30
  PLAYOFF_WEEK_TO_NAME = {
@@ -35,7 +35,7 @@ PLAYOFF_WEEK_TO_NAME = {
35
  5: "Total",
36
  }
37
 
38
- CURRENT_PLAYOFF_WEEK = 1
39
 
40
 
41
  PLAYOFFS_TEAMS = {
@@ -73,7 +73,16 @@ PLAYOFFS_TEAMS = {
73
  # teams.san_francisco_49ers.rosters_short_name,
74
  # teams.seattle_seahawks.rosters_short_name,
75
  ],
76
- 2: [],
 
 
 
 
 
 
 
 
 
77
  3: [],
78
  4: [],
79
  }
 
24
  ROSTER_WEEK_TO_PLAYOFF_WEEK[17] = 1
25
 
26
  # TODO - remove this temp hack to get options loaded earlier in week
27
+ ROSTER_WEEK_TO_PLAYOFF_WEEK[18] = 2
28
 
29
 
30
  PLAYOFF_WEEK_TO_NAME = {
 
35
  5: "Total",
36
  }
37
 
38
+ CURRENT_PLAYOFF_WEEK = 2
39
 
40
 
41
  PLAYOFFS_TEAMS = {
 
73
  # teams.san_francisco_49ers.rosters_short_name,
74
  # teams.seattle_seahawks.rosters_short_name,
75
  ],
76
+ 2: [
77
+ teams.buffalo_bills.rosters_short_name,
78
+ teams.baltimore_ravens.rosters_short_name,
79
+ teams.houston_texans.rosters_short_name,
80
+ teams.kansas_city_chiefs.rosters_short_name,
81
+ teams.philadelphia_eagles.rosters_short_name,
82
+ teams.washington_football_team.rosters_short_name,
83
+ teams.detroit_lions.rosters_short_name,
84
+ teams.los_angeles_rams.rosters_short_name,
85
+ ],
86
  3: [],
87
  4: [],
88
  }
src/pages/10_Set_Your_Lineup.py CHANGED
@@ -154,7 +154,7 @@ def get_page():
154
 
155
  player_options = load_options()
156
  # TODO - make more robust than just picking week 1 defenses but should work for now
157
- team_options_for_filter = sorted([x.team for x in player_options["DEF"][1]])
158
  team_filter = st.multiselect("Filter for NFL teams", team_options_for_filter)
159
 
160
  for week in range(1, 5):
 
154
 
155
  player_options = load_options()
156
  # TODO - make more robust than just picking week 1 defenses but should work for now
157
+ team_options_for_filter = sorted([x.team for x in player_options["DEF"][CURRENT_PLAYOFF_WEEK]])
158
  team_filter = st.multiselect("Filter for NFL teams", team_options_for_filter)
159
 
160
  for week in range(1, 5):