Fix: ELO with mixed ELO and getting rid of casual elo in favor of total elo
This commit is contained in:
parent
8db4870057
commit
ab5eaaf96b
2 changed files with 198 additions and 99 deletions
|
@ -57,19 +57,23 @@ type Deck struct {
|
|||
}
|
||||
|
||||
type Elo struct {
|
||||
ID string `db:"id" json:"id"`
|
||||
Date string `db:"date" json:"date"`
|
||||
Player1 string `db:"player_1" json:"player_1"`
|
||||
Player2 string `db:"player_2" json:"player_2"`
|
||||
Commander1 string `db:"commandant_1" json:"commander_1"`
|
||||
Commander2 string `db:"commandant_2" json:"commander_2"`
|
||||
Score1 int `db:"score_1" json:"score_1"`
|
||||
Score2 int `db:"score_2" json:"score_2"`
|
||||
Official bool `db:"official" json:"official"`
|
||||
EloCommander1 float64 `db:"elo_commandant_1" json:"elo_commander_1"`
|
||||
EloCommander2 float64 `db:"elo_commandant_2" json:"elo_commander_2"`
|
||||
EloPlayer1 float64 `db:"elo_player_1" json:"elo_player_1"`
|
||||
EloPlayer2 float64 `db:"elo_player_2" json:"elo_player_2"`
|
||||
ID string `db:"id" json:"id"`
|
||||
Date string `db:"date" json:"date"`
|
||||
Player1 string `db:"player_1" json:"player_1"`
|
||||
Player2 string `db:"player_2" json:"player_2"`
|
||||
Commander1 string `db:"commandant_1" json:"commander_1"`
|
||||
Commander2 string `db:"commandant_2" json:"commander_2"`
|
||||
Score1 int `db:"score_1" json:"score_1"`
|
||||
Score2 int `db:"score_2" json:"score_2"`
|
||||
Official bool `db:"official" json:"official"`
|
||||
EloCommander1 float64 `db:"elo_commandant_1" json:"elo_commander_1"`
|
||||
EloCommander2 float64 `db:"elo_commandant_2" json:"elo_commander_2"`
|
||||
EloPlayer1 float64 `db:"elo_player_1" json:"elo_player_1"`
|
||||
EloPlayer2 float64 `db:"elo_player_2" json:"elo_player_2"`
|
||||
EloTournamentCommander1 float64 `db:"elo_tournament_commandant_1" json:"elo_tournament_commander_1"`
|
||||
EloTournamentCommander2 float64 `db:"elo_tournament_commandant_2" json:"elo_tournament_commander_2"`
|
||||
EloTournamentPlayer1 float64 `db:"elo_tournament_player_1" json:"elo_tournament_player_1"`
|
||||
EloTournamentPlayer2 float64 `db:"elo_tournament_player_2" json:"elo_tournament_player_2"`
|
||||
}
|
||||
|
||||
type EloPlayer struct {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue