Skip to content

Commit

Permalink
fix(nt/2013): Match names to legislature
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 15, 2024
1 parent 2c1990a commit 3c5ee79
Showing 1 changed file with 15 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,26 @@

import boundaries


def namer(f):
import boundaries
n = boundaries.attr('ED')(f)
# @see bhttps://www.ntlegislativeassembly.ca/members/members-legislative-assembly/members
if n == 'Deh Cho':
return 'Dehcho'
if n == 'Tu Nedhe':
return 'Tu Nedhé-Wiilideh'
if n == 'Weledeh':
return "Yellowknife North"
return n


boundaries.register('Northwest Territories electoral districts (2013)',
singular='Northwest Territories electoral district',
domain='Northwest Territories',
# https://nwtelectoralboundaries.ca/wp-content/uploads/sites/6/2022/05/2021-electoral-boundaries-final-report-web.pdf
last_updated=date(2022, 5, 24),
name_func=boundaries.attr('ED'),
name_func=namer,
id_func=lambda f: int(f.get('EDNWTF_ID')),
authority='Her Majesty the Queen in Right of Northwest Territories',
encoding='iso-8859-1',
Expand Down

0 comments on commit 3c5ee79

Please sign in to comment.