Skip to content

Commit

Permalink
Minor code readability improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiasschaub committed Jul 6, 2021
1 parent 52c0e20 commit d78d228
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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)

0 comments on commit d78d228

Please sign in to comment.