Changed UnknownTicket to UnknownBet
This commit is contained in:
@@ -49,6 +49,7 @@ class Bet(ABC):
|
|||||||
@dataclass
|
@dataclass
|
||||||
class WinDrawLose(Bet):
|
class WinDrawLose(Bet):
|
||||||
"""Výsledek zápasu 1X2"""
|
"""Výsledek zápasu 1X2"""
|
||||||
|
|
||||||
betType: Literal["X", "0", "1", "2"] = "0"
|
betType: Literal["X", "0", "1", "2"] = "0"
|
||||||
|
|
||||||
def resolve(self, match: MatchInfo) -> BetOutcome:
|
def resolve(self, match: MatchInfo) -> BetOutcome:
|
||||||
@@ -71,6 +72,7 @@ class Advance(Bet):
|
|||||||
@dataclass
|
@dataclass
|
||||||
class WinDrawLoseDouble(Bet):
|
class WinDrawLoseDouble(Bet):
|
||||||
"""Výsledek zápasu - double"""
|
"""Výsledek zápasu - double"""
|
||||||
|
|
||||||
betType: Literal["01", "12", "02"] = "01"
|
betType: Literal["01", "12", "02"] = "01"
|
||||||
|
|
||||||
def resolve(self, match: MatchInfo) -> BetOutcome:
|
def resolve(self, match: MatchInfo) -> BetOutcome:
|
||||||
@@ -82,6 +84,7 @@ class WinDrawLoseDouble(Bet):
|
|||||||
@dataclass
|
@dataclass
|
||||||
class WinLose(Bet):
|
class WinLose(Bet):
|
||||||
"""Výsledek zápasu bez remízy"""
|
"""Výsledek zápasu bez remízy"""
|
||||||
|
|
||||||
betType: Literal["1", "2"] = "1"
|
betType: Literal["1", "2"] = "1"
|
||||||
|
|
||||||
def resolve(self, match: MatchInfo) -> BetOutcome:
|
def resolve(self, match: MatchInfo) -> BetOutcome:
|
||||||
@@ -101,6 +104,7 @@ class BothTeamScored(Bet):
|
|||||||
@dataclass
|
@dataclass
|
||||||
class GoalAmount(Bet):
|
class GoalAmount(Bet):
|
||||||
"""Počet gólů v zápasu — over/under total goals"""
|
"""Počet gólů v zápasu — over/under total goals"""
|
||||||
|
|
||||||
line: float = 0.0 # goal line, e.g. 2.5
|
line: float = 0.0 # goal line, e.g. 2.5
|
||||||
over: bool = True # True = more than line, False = less than line
|
over: bool = True # True = more than line, False = less than line
|
||||||
|
|
||||||
@@ -115,6 +119,7 @@ class GoalAmount(Bet):
|
|||||||
@dataclass
|
@dataclass
|
||||||
class GoalHandicap(Bet):
|
class GoalHandicap(Bet):
|
||||||
"""Goal handicap for a specific team — add handicap_amount to team's score, team wins = you win"""
|
"""Goal handicap for a specific team — add handicap_amount to team's score, team wins = you win"""
|
||||||
|
|
||||||
team_bet: Literal["1", "2"] = "1" # which team the handicap is applied to
|
team_bet: Literal["1", "2"] = "1" # which team the handicap is applied to
|
||||||
handicap_amount: float = 0.0 # e.g. +1.5 or -0.5
|
handicap_amount: float = 0.0 # e.g. +1.5 or -0.5
|
||||||
|
|
||||||
@@ -128,8 +133,9 @@ class GoalHandicap(Bet):
|
|||||||
|
|
||||||
|
|
||||||
@dataclass
|
@dataclass
|
||||||
class UnknownTicket(Bet):
|
class UnknownBet(Bet):
|
||||||
"""Bet type that could not be classified"""
|
"""Bet type that could not be classified"""
|
||||||
|
|
||||||
raw_text: str = ""
|
raw_text: str = ""
|
||||||
|
|
||||||
def resolve(self, match: MatchInfo) -> BetOutcome:
|
def resolve(self, match: MatchInfo) -> BetOutcome:
|
||||||
|
|||||||
Reference in New Issue
Block a user