mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-10 06:54:44 +00:00
10:43
This commit is contained in:
parent
2275fbcfb3
commit
4b629eeb3b
@ -324,13 +324,16 @@ def load_metrics(apikey, competition, match, group_name):
|
|||||||
gl2 = {"score": 1500, "rd": 250, "vol": 0.06}
|
gl2 = {"score": 1500, "rd": 250, "vol": 0.06}
|
||||||
ts = {"mu": 25, "sigma": 25/3}
|
ts = {"mu": 25, "sigma": 25/3}
|
||||||
|
|
||||||
d.push_team_metrics_data(apikey, competition, team, {"elo":elo, "gliko2":gl2,"trueskill":ts})
|
d.push_team_metrics_data(apikey, competition, team, {"elo":elo, "gl2":gl2,"trueskill":ts})
|
||||||
|
|
||||||
group[team] = {"elo": elo, "gl2": gl2, "ts": ts}
|
group[team] = {"elo": elo, "gl2": gl2, "ts": ts}
|
||||||
|
|
||||||
else:
|
else:
|
||||||
|
|
||||||
metrics = db_data["metrics"]
|
metrics = db_data["metrics"]
|
||||||
|
|
||||||
|
#print(metrics)
|
||||||
|
|
||||||
elo = metrics["elo"]
|
elo = metrics["elo"]
|
||||||
gl2 = metrics["gl2"]
|
gl2 = metrics["gl2"]
|
||||||
ts = metrics["trueskill"]
|
ts = metrics["trueskill"]
|
||||||
|
Loading…
Reference in New Issue
Block a user