Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions db/data/political-party-registrations.csv
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ MNIS ID,MNIS name,Electoral Commission ID,Jurisdiction,Registered on,Deregistere
1008,Abolish the Welsh Assembly Party,PP2802,Great Britain,03/07/2015,04/11/2020,23/07/2020
1008,Abolish the Welsh Assembly Party,PP12653,Great Britain,06/01/2021,,
1015,Advance Together,PP6667,Great Britain,22/01/2018,01/10/2020,
1116,Advance UK,PP18211,Great Britain,04/12/2025,,
231,Al-Zebabist Nation of Ooog,PP2399,Great Britain,12/09/2014,02/11/2017,09/12/2014
1034,Alba Party,PP12700,Great Britain,08/02/2021,,02/08/2021
181,All People's Party,PP2137,Great Britain,21/08/2013,17/04/2020,
Expand All @@ -21,8 +22,8 @@ MNIS ID,MNIS name,Electoral Commission ID,Jurisdiction,Registered on,Deregistere
58,Apolitical Democrats,PP845,Great Britain,22/03/2010,,
264,Ashfield Independents,PP3902,Great Britain,28/07/2016,,
62,Basingstoke Common Man,,,,,
61,"Beer, Baccy and Crumpet Party",,,,,
249,"Beer, Baccy and Scratchings",,,,,
61,"Beer, Baccy and Crumpet Party",PP2027,Great Britain,13/02/2013,,13/09/2017
249,"Beer, Baccy and Scratchings",PP2027,Great Britain,13/02/2013,,13/09/2017
65,Best of a Bad Bunch,PP764,Great Britain,22/06/2009,02/11/2010,02/11/2010
272,Better for Bradford,PP4230,Great Britain,11/08/2016,23/08/2017,
1011,Birkenhead Social Justice Party,PP10337,Great Britain,06/11/2019,17/02/2020,
Expand Down
17 changes: 14 additions & 3 deletions db/data/results-by-parliament/59/by-elections/candidacies.csv
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
Election date,ONS ID,ONS region ID,Constituency name,County name,Region name,Country name,Constituency type,Party name,Party abbreviation,Electoral Commission party ID,MNIS party ID,Electoral Commission adjunct party ID,Candidate first name,Candidate surname,Candidate gender,Sitting MP,Former MP,Member MNIS ID,Votes,Share,Change,Democracy Club person ID
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,English Democrats,ED,PP17,90,,Catherine Anne,Blaiklock,Female,No,No,,95,0.0029092,,30097
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,English Democrats,ED,PP17,90,,Catherine Anne,Blaiklock,Female,No,No,,95,0.002909,,30097
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Liberal,Lib,PP54,16,,Dan,Clarke,Male,No,No,,454,0.013903,0.002867,19433
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Green Party,Green,PP63,44,,Chris,Copeman,Male,No,No,,2314,0.070862,0.006678,6898
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Liberal Democrat,LD,PP90,17,,Paul Michael,Duffy,Male,No,No,,942,0.028847,-0.022228,53065
Expand All @@ -11,6 +11,17 @@ Election date,ONS ID,ONS region ID,Constituency name,County name,Region name,Cou
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,English Constitution Party,ECP,PP12881,1046,,Graham Harry,Moore,Male,No,No,,50,0.001531,,6504
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Social Democratic Party,SDP,PP243,32,,Paul Andrew,Murphy,Male,No,No,,68,0.002082,-0.000923,116177
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Reform UK,RUK,PP7931,1036,,Sarah Joanne,Pochin,Female,No,No,5403,12645,0.38723,0.205225,34543
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Labour,Lab,PP53,15,,Karen Louise,Shore,Female,No,No,,12639,0.38723,-0.142958,63960
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Labour,Lab,PP53,15,,Karen Louise,Shore,Female,No,No,,12639,0.387046,-0.142958,63960
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Rejoin EU,REU,PP11423,1040,,John,Stevens,Male,No,No,,129,0.00395,,3403
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Independent,Ind,,8,,Michael,Williams,Male,No,No,,363,0.011162,,119083
01/05/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,Independent,Ind,,8,,Michael,Williams,Male,No,No,,363,0.011116,,119083
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Official Monster Raving Loony Party,MRLP,PP66,119,,Sir Oink,A-Lot,Male,No,No,,159,0.004,,8194
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Advance UK,AUK,PP18211,1116,,Nick,Buckley,Male,No,No,,154,0.004,,35689
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Conservative,Con,PP52,4,,Charlotte Anne,Cadden,Female,No,No,,706,0.019,-0.06,123845
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Libertarian Party,LPUK,PP684,1003,,Dan,Clarke,Male,No,No,,47,0.001,,19433
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Reform UK,RUK,PP7931,1036,,Matt,Goodwin,Male,No,No,,10578,0.287,0.146,123811
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Social Democratic Party,SDP,PP243,32,,Sebastian,Moore,Male,No,No,,46,0.001,,114288
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Rejoin EU,REU,PP11423,1040,,Joseph,O'Meachair,Male,No,No,,98,0.003,,117227
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Liberal Democrat,LD,PP90,17,,Jackie,Pearcey,Female,No,No,,653,0.018,-0.02,5092
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Green Party,Green,PP63,44,,Hannah,Spencer,Female,No,No,5447,14980,0.406,0.274,100456
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Labour,Lab,PP53,15,,Angeliki,Stogia,Female,No,No,,9364,0.254,-0.254,14507
26/02/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,Communist League Election Campaign,Comm L,PP12791,77,,Hugo,Wils,Male,No,No,,29,0.001,,42445
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
By-election date,Writ date,ONS ID,ONS region ID,Constituency name,County name,Region name,Country name,Constituency type,Declaration time,Member first name,Member surname,Member gender,Result,First party,Second party,Electorate,Valid votes,Invalid votes,Majority,Con,Lab,LD,RUK,Green,SNP,PC,DUP,SF,SDLP,UUP,APNI,All other candidates,Of which other winner
01/05/2025,26/03/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,,Sarah Joanne,Pochin,Female,RUK gain from Lab,RUK,Lab,70666,32655,85,6,2341,12639,942,12645,2314,0,0,0,0,0,0,0,1774,0
01/05/2025,26/03/2025,E14001455,E12000002,Runcorn and Helsby,,North West,England,County,,Sarah Joanne,Pochin,Female,RUK gain from Lab,RUK,Lab,70666,32655,85,6,2341,12639,942,12645,2314,0,0,0,0,0,0,0,1774,0
26/02/2026,26/01/2026,E14001251,E12000002,Gorton and Denton,,North West,England,Borough,,Hannah,Spencer,Female,Green gain from Lab,Green,,77501,36814,90,4402,706,9364,653,10578,14980,0,0,0,0,0,0,0,533,0
Original file line number Diff line number Diff line change
Expand Up @@ -16,16 +16,16 @@ task :import_by_elections => [
task :import_by_election_elections => :environment do
puts "importing by-election elections"

# Import by-elections for Parliament 58.
import_elections( 58 )
# Import by-elections for Parliament 59.
import_elections( 59 )
end

# ## A task to import by-election candidacies.
task :import_by_election_candidacies => :environment do
puts "importing by-election candidacies"

# Import by-election candidacies for Parliament 58.
import_election_candidacies( 58 )
# Import by-election candidacies for Parliament 59.
import_election_candidacies( 59 )
end

# ## A task to apply result positions to by-elections.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
UPDATE candidacies SET member_id = 1546 WHERE id=22472;
Binary file modified public/schema.graffle
Binary file not shown.
18 changes: 9 additions & 9 deletions public/schema.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.