Commit da9b0459 authored by Sharp Hall's avatar Sharp Hall

Add Nov 5, 2019 At-Large maps for democratic and non-democratic

parent be096c74
Pipeline #93914616 passed with stage
in 2 minutes and 40 seconds
......@@ -70,6 +70,15 @@ def load_election_data_new_format(filename, scaffold=False):
'Race': header[0][i].strip(),
'Division': row[2].strip()
})
if header[0][i].strip() == 'COUNCIL AT-LARGE':
data.append({
'Votes': 0 if scaffold else int(col),
'Carts': [0, 1] if scaffold else carts,
'Choice': header[1][i].strip(),
'Race': 'Council At-Large ' + ('(Democratic)' if '(DEMOCRATIC)' in header[1][i]
else '(Non-democratic)'),
'Division': row[2].strip()
})
for record in data:
races[record['Race']]['raw_data'].append(record)
return races
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment