Commit 9bd21411 authored by Marius Kriegerowski's avatar Marius Kriegerowski
Browse files

Use storage.execute to write data

parent 7b8b9b54
Pipeline #24305 passed with stage
in 1 minute and 38 seconds
......@@ -41,7 +41,6 @@ class GetBuilding(Rule):
):
# Push the building data to storage_to
async with self.storage_to.connection.cursor() as cur:
await cur.execute(
"INSERT INTO obm_buildings (osm_id, geometry) VALUES (%s,%s)", row
)
await self.storage_to.execute(
"INSERT INTO obm_buildings (osm_id, geometry) VALUES (%s,%s)", row
)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment