diff --git a/web/services/election/calculate-election-generic.js b/web/services/election/calculate-election-generic.js index 989cbef8acdf5976ba51ac9c9e313c77c8587a55..36d8c30d2df243d88919a7196b0f8a2f6d097d38 100644 --- a/web/services/election/calculate-election-generic.js +++ b/web/services/election/calculate-election-generic.js @@ -463,7 +463,7 @@ class ElectionCalculator { return electeds; } - getElectedsLocalCounsilDirect(area) { + getElectedsAllForFirst(area) { let electeds = []; // order candidates by rank and remove refused or removed candidates @@ -486,6 +486,8 @@ class ElectionCalculator { area.candidateLists[0].Candidates.splice(0, seatForFirst) ); + area.candidateLists[0].SeatsAttributed += seatForFirst; + return electeds; } }