some todo
parent
781bfb8a67
commit
f619fe9e1b
|
|
@ -238,8 +238,8 @@ func (v01 *V01) serveGMElect(w http.ResponseWriter, r *http.Request) {
|
||||||
aliasWinner := ""
|
aliasWinner := ""
|
||||||
votes := map[string]int{}
|
votes := map[string]int{}
|
||||||
for k, v := range v01.cfg.Users {
|
for k, v := range v01.cfg.Users {
|
||||||
votes[v.State.GM.Vote] = votes[v.State.GM.Vote] + 1 // todo into state.gm
|
votes[v.State.GM.Vote] = votes[v.State.GM.Vote] + 1
|
||||||
if v.State.GM.LastAlias == alias { // todo lowkey aliases pls // todo into state.gm // TODO y no test fail
|
if v.State.GM.LastAlias == alias {
|
||||||
aliasWinner = k
|
aliasWinner = k
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue