Skip to content
Snippets Groups Projects
Commit 7cec03a3 authored by Balthazar Wilson's avatar Balthazar Wilson
Browse files

fix: options voting

parent 682f5b10
No related branches found
No related tags found
1 merge request!8implémentation des votants par Balthazar
...@@ -92,7 +92,7 @@ func (rsa *BallotServerAgent) receiveVote(w http.ResponseWriter, r *http.Request ...@@ -92,7 +92,7 @@ func (rsa *BallotServerAgent) receiveVote(w http.ResponseWriter, r *http.Request
// Register the vote // Register the vote
ballot.profile = append(ballot.profile, intToAlt(req.Prefs)) ballot.profile = append(ballot.profile, intToAlt(req.Prefs))
if len(req.Options) != 0 { if len(req.Options) != 0 {
ballot.options = append(ballot.options, req.Options[0]) ballot.options = append(ballot.options, req.Options)
} }
// On elève l'agent de la liste des agents votants // On elève l'agent de la liste des agents votants
for i, agt := range ballot.votersId { for i, agt := range ballot.votersId {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment