✨ Better voting result
This commit is contained in:
parent
7d34b00955
commit
a25380193f
2 changed files with 29 additions and 24 deletions
|
|
@ -187,6 +187,13 @@ nextVote:
|
|||
}
|
||||
votes = append(votes, v.votes[i])
|
||||
}
|
||||
|
||||
// anonymize
|
||||
if v.annonymous {
|
||||
for i := range votes {
|
||||
votes[i].Elector = ""
|
||||
}
|
||||
}
|
||||
return votes
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue