[Old uncommitted change] SeleniumHelper + default values in dataclass
This commit is contained in:
parent
466deb386f
commit
acd0863573
1 changed files with 5 additions and 5 deletions
|
@ -58,12 +58,12 @@ class Status(enum.IntEnum):
|
|||
|
||||
@dataclass
|
||||
class PartialServerInfo:
|
||||
id: str
|
||||
name: str
|
||||
software: str
|
||||
status: str
|
||||
players: int
|
||||
se: SeleniumHelper
|
||||
id: str
|
||||
name: str = ''
|
||||
software: str = ''
|
||||
status: str = ''
|
||||
players: int = 0
|
||||
|
||||
def use(self) -> None:
|
||||
self.se.set_cookie('ATERNOS_SERVER', self.id)
|
||||
|
|
Reference in a new issue