Skip to content

Commit

Permalink
fix(qc/2017): Fix renaming in 2022
Browse files Browse the repository at this point in the history
  • Loading branch information
jpmckinney committed May 15, 2024
1 parent 3c5ee79 commit 7e6b8ea
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,21 @@

import boundaries


def namer(f):
import boundaries
n = boundaries.clean_attr('NM_CEP')
# https://fr.wikipedia.org/wiki/Camille-Laurin_(circonscription_provinciale)
if n == 'Bourget':
return 'Camille-Laurin'
return n


boundaries.register('Quebec electoral districts (2017)',
singular='Quebec electoral district',
domain='Quebec',
last_updated=date(2017, 10, 4),
name_func=boundaries.clean_attr('NM_CEP'),
name_func=namer,
id_func=boundaries.attr('CO_CEP'),
authority='Directeur général des élections du Québec',
source_url='https://www.electionsquebec.qc.ca/francais/provincial/carte-electorale/geometrie-des-circonscriptions-provinciales-du-quebec.php',
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@


def namer(f):
import boundaries
n = boundaries.attr('ED')(f)
n = f.get('ED')
# @see bhttps://www.ntlegislativeassembly.ca/members/members-legislative-assembly/members
if n == 'Deh Cho':
return 'Dehcho'
Expand Down

0 comments on commit 7e6b8ea

Please sign in to comment.