Jon Solow
commited on
Commit
·
01d0fea
1
Parent(s):
0128ae2
Allow empty and hidden players to have position set
Browse files- src/load_options.py +6 -4
src/load_options.py
CHANGED
@@ -37,12 +37,14 @@ class PlayerOption:
|
|
37 |
)
|
38 |
|
39 |
@classmethod
|
40 |
-
def empty_player(cls, week: int | None = None):
|
41 |
-
return cls(full_name="", gsis_id="", headshot_url="", position=
|
42 |
|
43 |
@classmethod
|
44 |
-
def hidden_player(cls, week: int | None = None):
|
45 |
-
return cls(
|
|
|
|
|
46 |
|
47 |
def is_locked(self) -> bool:
|
48 |
if not self.gametime:
|
|
|
37 |
)
|
38 |
|
39 |
@classmethod
|
40 |
+
def empty_player(cls, week: int | None = None, position: str = ""):
|
41 |
+
return cls(full_name="", gsis_id="", headshot_url="", position=position, team="", gametime=None, week=week)
|
42 |
|
43 |
@classmethod
|
44 |
+
def hidden_player(cls, week: int | None = None, position: str = ""):
|
45 |
+
return cls(
|
46 |
+
full_name="Hidden", gsis_id="", headshot_url="", position=position, team="", gametime=None, week=week
|
47 |
+
)
|
48 |
|
49 |
def is_locked(self) -> bool:
|
50 |
if not self.gametime:
|