diff --git a/results-tabulation-api/ext/ExtendedElection/__init__.py b/results-tabulation-api/ext/ExtendedElection/__init__.py index 1ab32e56..1db46816 100644 --- a/results-tabulation-api/ext/ExtendedElection/__init__.py +++ b/results-tabulation-api/ext/ExtendedElection/__init__.py @@ -78,7 +78,8 @@ def get_mapped_area(self, area_ids=None, requested_area_type=None): "areaName": input_area.areaName, "areaType": input_area.areaType.name, "mappedAreaId": area_data[requested_area_type+"Id"], - "mappedAreaName": area_data[requested_area_type+"Name"] + "mappedAreaName": area_data[requested_area_type+"Name"], + "mappedAreaType": requested_area_type }) return filtered_area_map diff --git a/results-tabulation-api/schemas/__init__.py b/results-tabulation-api/schemas/__init__.py index 5a7b05fa..ab379e3b 100644 --- a/results-tabulation-api/schemas/__init__.py +++ b/results-tabulation-api/schemas/__init__.py @@ -296,6 +296,7 @@ class Meta: "areaType", "mappedAreaId", "mappedAreaName", + "mappedAreaType", )