gdoteof/election — Issue #12: Winning Threshold Needed
Author: bradley-holt
Created: 2012-02-14 21:23:38+00:00
State: open
Labels: JSON

### Description

Please include the winning threshold, if applicable.

### Steps to Reproduce

curl 'https://example.org/town-meeting-season-2011/city-of-burlington/burlington-mayor' \
-H 'Accept: application/json'

### Actual Results

```json
{
"title":"Burlington Mayor",
…
"results":{
"Miro_Weinberger":{
"votes":121,
"complete":false
},
"Bob_Kiss":{
"votes":232,
"complete":false
},
"Kurt_Wright":{
"votes":156,
"complete":false
}
}
}
```

### Expected Results

```json
{
"title":"Burlington Mayor",
…
"results":{
"Miro_Weinberger":{
"votes":121,
"winning_threshold":204,
"complete":false
},
"Bob_Kiss":{
"votes":232,
"winning_threshold":204,
"complete":false
},
"Kurt_Wright":{
"votes":156,
"winning_threshold":204,
"complete":false
}
}
}
```

### Additional Comments

This is based on the explicit winning threshold (40% for Burlington Mayor), not the number of votes at which the "winner" flag would switch from false to true (e.g. plurality without an explicit winning threshold or plurality plus winning threshold). If there is no explicit winning threshold then this property should be excluded.

I'm not sure yet how this would be presented in the HTML as it will only be included in the chart as a visual indicator.