bug in function reading, expecting str and getting int
This commit is contained in:
parent
e07156ac30
commit
5dcead4e5d
|
@ -121,7 +121,7 @@ class Geojson:
|
|||
year_of_construction = int(feature['properties'][self._year_of_construction_field])
|
||||
function = 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:
|
||||
# use the transformation dictionary to retrieve the proper function
|
||||
if function in self._function_to_hub:
|
||||
|
|
Loading…
Reference in New Issue
Block a user