From e7c9214afa301bdc6d64482d2ef914f804f0125c Mon Sep 17 00:00:00 2001 From: Brian Wiborg Date: Mon, 13 May 2024 01:52:19 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20Load=20empty=20electors=20correc?= =?UTF-8?q?tly?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- store/handler.go | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/store/handler.go b/store/handler.go index 4ee56df..6c5ae00 100644 --- a/store/handler.go +++ b/store/handler.go @@ -59,7 +59,11 @@ func GetVoting(id string) (*voting.Voting, error) { if t, err = threshold.FromString(dbThreshold); err != nil { return nil, err } - e = strings.Split(dbElectors, " ") + for _, _e := range strings.Split(dbElectors, " ") { + if _e != "" { + e = append(e, _e) + } + } votes, err := getVotes(id) if err != nil {