Skip to content

Commit

Permalink
Merge branch 'master' of https://github.com/ECLK/epollbook
Browse files Browse the repository at this point in the history
  • Loading branch information
sanjiva committed Aug 4, 2020
2 parents b224a95 + 82ec873 commit 3ad947c
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 13 deletions.
8 changes: 4 additions & 4 deletions grafana/electoral_district_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1596462290218,
"iteration": 1596462290228,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -504,7 +504,7 @@
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Male Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = 'MALE' and ID in (SELECT ID FROM VoteRecords WHERE DistrictID = ${electoral_district_id} and VotingStatus = \"VOTED\");",
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Male Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = 'MALE' and ID in (SELECT ID FROM VoteRecords WHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and VotingStatus = \"VOTED\");",
"refId": "B",
"select": [
[
Expand All @@ -531,7 +531,7 @@
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Female Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = \"FEMALE\" and ID in (SELECT ID FROM VoteRecords WHERE DistrictID = ${electoral_district_id} and VotingStatus = \"VOTED\");",
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Female Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = \"FEMALE\" and ID in (SELECT ID FROM VoteRecords WHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and VotingStatus = \"VOTED\");",
"refId": "C",
"select": [
[
Expand Down Expand Up @@ -936,5 +936,5 @@
"timezone": "",
"title": "Electoral District Dashboard - E Poll Book",
"uid": "-8CSgjVGz",
"version": 4
"version": 5
}
10 changes: 5 additions & 5 deletions grafana/polling_division_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1596462013688,
"iteration": 1596462013701,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -483,7 +483,7 @@
"hide": true,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT COUNT(*) as \"Failed Attempts\"\nFROM VoteRecords\nWHERE DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and PollingStationID = $polling_station and Status = \"failed\";",
"rawSql": "SELECT COUNT(*) as \"Failed Attempts\"\nFROM VoteRecords\nWHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and PollingStationID = $polling_station and Status = \"failed\";",
"refId": "A",
"select": [
[
Expand All @@ -504,7 +504,7 @@
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Male Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = 'MALE' and ID in (SELECT ID FROM VoteRecords WHERE DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and VotingStatus = \"VOTED\");",
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Male Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = 'MALE' and ID in (SELECT ID FROM VoteRecords WHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and VotingStatus = \"VOTED\");",
"refId": "B",
"select": [
[
Expand All @@ -531,7 +531,7 @@
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Female Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = \"FEMALE\" and ID in (SELECT ID FROM VoteRecords WHERE DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and VotingStatus = \"VOTED\");",
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Female Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = \"FEMALE\" and ID in (SELECT ID FROM VoteRecords WHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and VotingStatus = \"VOTED\");",
"refId": "C",
"select": [
[
Expand Down Expand Up @@ -980,5 +980,5 @@
"timezone": "",
"title": "Polling Division Dashboard - E Poll Book",
"uid": "DZ6bB9VGk",
"version": 6
"version": 7
}
8 changes: 4 additions & 4 deletions grafana/polling_station_dashboard.json
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
"gnetId": null,
"graphTooltip": 0,
"id": null,
"iteration": 1596457080601,
"iteration": 1596457080629,
"links": [],
"panels": [
{
Expand Down Expand Up @@ -504,7 +504,7 @@
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Male Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = 'MALE' and ID in (SELECT ID FROM VoteRecords WHERE DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and PollingStationID = $polling_station and VotingStatus = \"VOTED\");",
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Male Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = 'MALE' and ID in (SELECT ID FROM VoteRecords WHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and PollingStationID = $polling_station and VotingStatus = \"VOTED\");",
"refId": "B",
"select": [
[
Expand All @@ -531,7 +531,7 @@
"hide": false,
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Female Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = \"FEMALE\" and ID in (SELECT ID FROM VoteRecords WHERE DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and PollingStationID = $polling_station and VotingStatus = \"VOTED\");",
"rawSql": "SELECT (COUNT(*)/${casted_votes}) * 100 as \"Female Voters (%)\"\nFROM ElectorRegistry\nWHERE Sex = \"FEMALE\" and ID in (SELECT ID FROM VoteRecords WHERE $__timeFilter(Timestamp) and DistrictID = ${electoral_district_id} and PollingDivisionID = ${polling_division_id:singlequote} and PollingStationID = $polling_station and VotingStatus = \"VOTED\");",
"refId": "C",
"select": [
[
Expand Down Expand Up @@ -1002,5 +1002,5 @@
"timezone": "",
"title": "Polling Station Dashboard - E Poll Book",
"uid": "y_Ua1V9Wz",
"version": 50
"version": 51
}

0 comments on commit 3ad947c

Please sign in to comment.