Skip to content
Snippets Groups Projects
Commit 0120eb56 authored by Alexis POYEN's avatar Alexis POYEN
Browse files

Merge branch '63-refresh-results' into 'master'

Feat : refresh results every 30 seconds

Closes #63

See merge request apoyen/elections!54
parents 9726e176 ef887158
No related branches found
No related tags found
1 merge request!54Feat : refresh results every 30 seconds
Pipeline #6251 passed
......@@ -43,6 +43,9 @@ class DirectMetropolitanCalculator {
async calculateResults(filter) {
this.CandidateListModel.refreshCandidateLists();
this.AreaModel.refreshAreas();
this.SectionModel.refreshSections();
this.DeskRoundModel.refreshDeskRounds();
let calculator = this;
this.filter = filter;
this.deskRounds = await this.DeskRoundModel.getDeskRounds();
......@@ -138,7 +141,6 @@ class DirectMetropolitanCalculator {
async calculateAreasResults() {
let calculator = this;
this.AreaModel.refreshAreas();
let areas = await this.AreaModel.getAreas();
areas = areas.filter(function (area) {
return area.ElectionID == calculator.round.ElectionID;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment