~xenrox/10man-api

701dbd8c0cb4fcbaff9d87946fc13ee2da4757f4 — Thorben Günther 2 years ago 7d70998 0.1.1
logic: Fix elo calculation

Typical sign error...
1 files changed, 1 insertions(+), 1 deletions(-)

M logic/logic.go
M logic/logic.go => logic/logic.go +1 -1
@@ 95,7 95,7 @@ func EloChange(team1Elo int, team2Elo int, winner string) (int, int, error) {
		return int(elo), -int(elo), nil
	} else if winner == "TEAM2" {
		elo := math.Round(50 * (0 - perc))
		return -int(elo), int(elo), nil
		return int(elo), -int(elo), nil
	}

	return 0, 0, fmt.Errorf("wrong winner: %s", winner)