Skip to content

Commit

Permalink
Fix mapping value issue
Browse files Browse the repository at this point in the history
  • Loading branch information
thenav56 committed Dec 4, 2024
1 parent a1d540a commit a024903
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/cap_feed/formats/cap_xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ def process_geo_codes(
for value_name, value in qs.values_list("value_name", "value"):
# TODO: Remove _value2member_map_ after upgrading python version
if value_name.upper() in Admin1.GeoCode._value2member_map_:
geocode_map[value_name.upper()].add(value)
geocode_map[Admin1.GeoCode[value_name.upper()]].add(value)

possible_admin1_ids: list[int] = []
for geocode_name, values in geocode_map.items():
Expand Down

0 comments on commit a024903

Please sign in to comment.