🩹 Load empty electors correctly
This commit is contained in:
parent
116eb4604a
commit
e7c9214afa
1 changed files with 5 additions and 1 deletions
|
@ -59,7 +59,11 @@ func GetVoting(id string) (*voting.Voting, error) {
|
||||||
if t, err = threshold.FromString(dbThreshold); err != nil {
|
if t, err = threshold.FromString(dbThreshold); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
e = strings.Split(dbElectors, " ")
|
for _, _e := range strings.Split(dbElectors, " ") {
|
||||||
|
if _e != "" {
|
||||||
|
e = append(e, _e)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
votes, err := getVotes(id)
|
votes, err := getVotes(id)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue