Skip to content

Commit

Permalink
add area type name
Browse files Browse the repository at this point in the history
  • Loading branch information
umayangag committed Sep 7, 2020
1 parent 23a2aae commit 217c5e8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion results-tabulation-api/ext/ExtendedElection/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions results-tabulation-api/schemas/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ class Meta:
"areaType",
"mappedAreaId",
"mappedAreaName",
"mappedAreaType",
)


Expand Down

0 comments on commit 217c5e8

Please sign in to comment.