From 8ced7dea00d1f8888a43fc35058731feed9621b9 Mon Sep 17 00:00:00 2001
From: Balthazar Wilson <wilsonba@etu.utc.fr>
Date: Sun, 5 Nov 2023 17:19:09 +0100
Subject: [PATCH] add copeland and stv as options

---
 agt/ballotagent/new_ballot.go | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/agt/ballotagent/new_ballot.go b/agt/ballotagent/new_ballot.go
index e0121b2..ecaa4f0 100644
--- a/agt/ballotagent/new_ballot.go
+++ b/agt/ballotagent/new_ballot.go
@@ -77,6 +77,10 @@ func (rsa *BallotServerAgent) createBallot(w http.ResponseWriter, r *http.Reques
 		go rsa.handleBallot(resp, cs.BordaSWF, cs.BordaSCF, tb, deadline)
 	case "approval":
 		go rsa.handleBallotWithSingleOption(resp, cs.ApprovalSWF, cs.ApprovalSCF, tb, deadline)
+	case "copeland":
+		go rsa.handleBallot(resp, cs.CopelandSWF, cs.CopelandSCF, tb, deadline)
+	case "stv":
+		go rsa.handleBallot(resp, cs.STV_SWF, cs.STV_SCF, tb, deadline)
 	default:
 		w.WriteHeader(http.StatusNotImplemented)
 		msg := fmt.Sprintf("Unkonwn rule '%s'", req.Rule)
-- 
GitLab