diff --git a/db/data/political-party-registrations.csv b/db/data/political-party-registrations.csv index f424ed3c..e3e6c17c 100644 --- a/db/data/political-party-registrations.csv +++ b/db/data/political-party-registrations.csv @@ -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, @@ -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, diff --git a/db/data/results-by-parliament/59/by-elections/candidacies.csv b/db/data/results-by-parliament/59/by-elections/candidacies.csv index 7cf4ba08..91c6b000 100644 --- a/db/data/results-by-parliament/59/by-elections/candidacies.csv +++ b/db/data/results-by-parliament/59/by-elections/candidacies.csv @@ -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 @@ -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 diff --git a/db/data/results-by-parliament/59/by-elections/constituencies.csv b/db/data/results-by-parliament/59/by-elections/constituencies.csv index b7eb00b8..8c557238 100644 --- a/db/data/results-by-parliament/59/by-elections/constituencies.csv +++ b/db/data/results-by-parliament/59/by-elections/constituencies.csv @@ -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 \ No newline at end of file +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 diff --git a/lib/tasks/live/21-import-by-elections/import-by-elections.rake b/lib/tasks/live/21-import-by-elections/import-by-elections.rake index df52a101..f28109d4 100644 --- a/lib/tasks/live/21-import-by-elections/import-by-elections.rake +++ b/lib/tasks/live/21-import-by-elections/import-by-elections.rake @@ -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. diff --git a/lib/tasks/live/34-link-hannah-spencer/link-hannah-spencer.sql b/lib/tasks/live/34-link-hannah-spencer/link-hannah-spencer.sql new file mode 100644 index 00000000..35630412 --- /dev/null +++ b/lib/tasks/live/34-link-hannah-spencer/link-hannah-spencer.sql @@ -0,0 +1 @@ +UPDATE candidacies SET member_id = 1546 WHERE id=22472; \ No newline at end of file diff --git a/public/schema.graffle b/public/schema.graffle index 90a6818f..a441c9a8 100644 Binary files a/public/schema.graffle and b/public/schema.graffle differ diff --git a/public/schema.svg b/public/schema.svg index ebb75841..b3eb30f2 100644 --- a/public/schema.svg +++ b/public/schema.svg @@ -1,6 +1,6 @@ - + @@ -18,7 +18,7 @@ - + Canvas 1 @@ -483,9 +483,9 @@ Class with Attributes Attributes - - - + + + id label abbreviation @@ -493,15 +493,15 @@ Class Name - - - + + + legislation-types - + Class with Attributes