Match
Tournament Match Model
MapListMap
¤
Map in a Map List
Source code in sendou/models/tournament/match.py
26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 | |
MapListSourceEnum
¤
Bases: Enum
Where Map was sourced from
"DEFAULT" if it was a default map, something went wrong with the algorithm typically "TIEBREAKER" if it was a tiebreaker map (selected by the TO) "BOTH" both teams picked the map
Source code in sendou/models/tournament/match.py
13 14 15 16 17 18 19 20 21 22 23 | |
Match
¤
Bases: BaseModel
A Tournament Match
Attributes:
| Name | Type | Description |
|---|---|---|
team_one |
Optional[MatchTeam]
|
Team One |
team_two |
Optional[MatchTeam]
|
Team Two |
map_list |
List[MapListMap]
|
Map List |
url |
str
|
Match URL |
Source code in sendou/models/tournament/match.py
67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 | |
api_route(**kwargs)
staticmethod
¤
Get the API route
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
match_id
|
int
|
Match ID |
required |
Returns:
| Name | Type | Description |
|---|---|---|
str |
str
|
API Route |
Source code in sendou/models/tournament/match.py
89 90 91 92 93 94 95 96 97 98 99 100 | |
MatchTeam
¤
Team in a Match
Attributes:
| Name | Type | Description |
|---|---|---|
id |
int
|
Team ID |
score |
int
|
Team Score |
Source code in sendou/models/tournament/match.py
51 52 53 54 55 56 57 58 59 60 61 62 63 64 | |