diff --git a/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_buildings/indicator.py b/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_buildings/indicator.py index 4e7d226ea..60b12ea42 100644 --- a/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_buildings/indicator.py +++ b/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_buildings/indicator.py @@ -199,6 +199,6 @@ async def get_zonal_stats_population(self) -> Record: st_setsrid(public.ST_GeomFromGeoJSON($3), 4326) ) """ - data = tuple(map(str, [self.feature.geometry] * 3)) + data = tuple([str(self.feature.geometry)] * 3) async with db_client.get_connection() as conn: return await conn.fetchrow(query, *data) diff --git a/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_roads/indicator.py b/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_roads/indicator.py index 053ec9e19..23eb9d59d 100644 --- a/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_roads/indicator.py +++ b/workers/ohsome_quality_analyst/indicators/ghs_pop_comparison_roads/indicator.py @@ -193,6 +193,6 @@ async def get_zonal_stats_population(self) -> Record: st_setsrid(public.ST_GeomFromGeoJSON($3), 4326) ) """ - data = tuple(map(str, [self.feature.geometry] * 3)) + data = tuple([str(self.feature.geometry)] * 3) async with db_client.get_connection() as conn: return await conn.fetchrow(query, *data)