some todo
This commit is contained in:
@@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user