[Old uncommitted change] SeleniumHelper + default values in dataclass

This commit is contained in:
DarkCat09 2024-02-15 17:29:32 +04:00
parent 466deb386f
commit acd0863573
Signed by: DarkCat09
GPG key ID: 0A26CD5B3345D6E3

View file

@ -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)