bug in function reading, expecting str and getting int

This commit is contained in:
Pilar Monsalvete 2023-06-09 13:36:21 -04:00
parent e07156ac30
commit 5dcead4e5d

View File

@ -121,7 +121,7 @@ class Geojson:
year_of_construction = int(feature['properties'][self._year_of_construction_field]) year_of_construction = int(feature['properties'][self._year_of_construction_field])
function = None function = None
if self._function_field is not None: if self._function_field is not None:
function = feature['properties'][self._function_field] function = str(feature['properties'][self._function_field])
if self._function_to_hub is not None: if self._function_to_hub is not None:
# use the transformation dictionary to retrieve the proper function # use the transformation dictionary to retrieve the proper function
if function in self._function_to_hub: if function in self._function_to_hub: