-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.py
156 lines (151 loc) · 3.23 KB
/
config.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
# coding: utf-8
YEARS = [1999, 2002, 2005, 2008, 2011, 2014, 2017, 2020]
NUM_ELECTORATES = {2002: 69, 2005: 69, 2008: 70, 2011: 70, 2014: 71, 2017: 71, 2020: 72}
PARTIES = dict()
PARTIES[2020] = [
"ACT New Zealand",
"Advance NZ",
"Green Party",
"Labour Party",
"Māori Party",
"National Party",
"New Conservative",
"New Zealand First Party",
"The Opportunities Party (TOP)"]
PARTIES[2017] = [
u"ACT New Zealand",
u"Green Party",
u"Labour Party",
u"Māori Party",
u"National Party",
u"New Zealand First Party",
u"The Opportunities Party (TOP)"]
PARTIES[2014] = [
u"ACT New Zealand",
u"Conservative",
u"Green Party",
u"Internet MANA",
u"Labour Party",
u"Māori Party",
u"National Party",
u"New Zealand First Party",
u"United Future"]
PARTIES[2011] = [
u"ACT New Zealand",
u"Conservative Party",
u"Green Party",
u"Mana",
u"Labour Party",
u"Māori Party",
u"National Party",
u"New Zealand First Party",
u"United Future"]
PARTIES[2008] = [
u"ACT New Zealand",
u"Green Party",
u"Labour Party",
u"Maori Party",
u"National Party",
u"New Zealand First Party",
u"United Future"]
PARTIES[2005] = [
u"ACT New Zealand",
u"Green Party",
u"Jim Anderton's Progressive",
u"Labour Party",
u"M�ori Party",
u"National Party",
u"New Zealand First Party",
u"United Future New Zealand"]
PARTIES[2002] = [
u"ACT",
u"Green Party",
u"Labour Party",
u"National Party",
u"NZ First",
u"Progressive Coalition",
u"United Future"]
PARTIES[1999] = [
u"ACT New Zealand",
u"Alliance",
u"Green Party",
u"Labour Party",
u"National Party",
u"New Zealand First Party",
u"United NZ"]
MAJOR_PARTIES = [
u"Green Party",
u"Labour Party",
u"National Party",
]
# The files for 1999 are, annoyingly, named by electorate.
ELECTORATE_NAMES_1999 = [
u"Albany",
u"Aoraki",
u"Auckland Central",
u"Banks Peninsula",
u"Bay of Plenty",
u"Christchurch Central",
u"Christchurch East",
u"Clutha-Southland",
u"Coromandel",
u"Dunedin North",
u"Dunedin South",
u"East Coast",
u"Epsom",
u"Hamilton East",
u"Hamilton West",
u"Hunua",
u"Hutt South",
u"Ilam",
u"Invercargill",
u"Kaikoura",
u"Karapiro",
u"Mana",
u"Mangere",
u"Manukau East",
u"Manurewa",
u"Maungakiekie",
u"Mt Albert",
u"Mt Roskill",
u"Napier",
u"Nelson",
u"New Plymouth",
u"North Shore",
u"Northcote",
u"Northland",
u"Ohariu-Belmont",
u"Otago",
u"Otaki",
u"Pakuranga",
u"Palmerston North",
u"Port Waikato",
u"Rakaia",
u"Rangitikei",
u"Rimutaka",
u"Rodney",
u"Rongotai",
u"Rotorua",
u"Tamaki",
u"Taranaki-King Country",
u"Taupo",
u"Tauranga",
u"Te Atatu",
u"Titirangi",
u"Tukituki",
u"Waimakariri",
u"Wairarapa",
u"Waitakere",
u"Wellington Central",
u"West Coast-Tasman",
u"Whanganui",
u"Whangarei",
u"Wigram",
u"Hauraki",
u"Ikaroa-Rawhiti",
u"Te Tai Hauauru",
u"Te Tai Tokerau",
u"Te Tai Tonga",
u"Waiariki",
]
NUM_ELECTORATES[1999] = len(ELECTORATE_NAMES_1999)