Better voting result

This commit is contained in:
Brian Wiborg 2024-05-14 00:53:30 +02:00
parent 7d34b00955
commit a25380193f
No known key found for this signature in database
GPG key ID: BE53FA9286B719D6
2 changed files with 29 additions and 24 deletions

View file

@ -187,6 +187,13 @@ nextVote:
}
votes = append(votes, v.votes[i])
}
// anonymize
if v.annonymous {
for i := range votes {
votes[i].Elector = ""
}
}
return votes
}