Skip to content

Commit 714f48e

Browse files
committed
Fix Halifax "&" (scrapers_ca_app converts to "and")
1 parent f147aa0 commit 714f48e

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

boundaries/ocd-division/country:ca/csd:1209034/definition.py

+7-1
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,16 @@
22

33
import boundaries
44

5+
6+
def namer(f):
7+
import boundaries
8+
return boundaries.clean_attr('DISTNAME')(f).replace('&', "and")
9+
10+
511
boundaries.register('Halifax districts',
612
domain='Halifax, NS',
713
last_updated=date(2024, 11, 6),
8-
name_func=boundaries.clean_attr('DISTNAME'),
14+
name_func=namer,
915
id_func=boundaries.attr('DIST_ID'),
1016
authority='Halifax Regional Municipality',
1117
source_url='https://data-hrm.hub.arcgis.com/datasets/04c5bee564f84b4a8f1c8dd305896079_0',

0 commit comments

Comments
 (0)