Skip to content

Commit 00d71cc

Browse files
committed
fix(ingestor): queries require sequences (#23)
Fix failures around when the STAC Ingestor attempts to update collection summaries.
1 parent 01400e6 commit 00d71cc

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

lib/ingestor-api/runtime/src/vedaloader.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,19 +28,19 @@ def update_collection_summaries(self, collection_id: str) -> None:
2828
)
2929
cur.execute(
3030
"SELECT dashboard.update_collection_default_summaries(%s)",
31-
collection_id,
31+
[collection_id],
3232
)
3333
logger.info("Updating bbox for collection: {}.".format(collection_id))
34-
cur.execute("SELECT pgstac.collection_bbox(%s)", collection_id)
34+
cur.execute("SELECT pgstac.collection_bbox(%s)", [collection_id])
3535
logger.info(
3636
"Updating temporal extent for collection: {}.".format(collection_id)
3737
)
3838
cur.execute(
39-
"SELECT pgstac.collection_temporal_extent(%s)", collection_id
39+
"SELECT pgstac.collection_temporal_extent(%s)", [collection_id]
4040
)
4141

4242
def delete_collection(self, collection_id: str) -> None:
4343
with self.conn.cursor() as cur:
4444
with self.conn.transaction():
4545
logger.info(f"Deleting collection: {collection_id}.")
46-
cur.execute("SELECT pgstac.delete_collection(%s);", (collection_id,))
46+
cur.execute("SELECT pgstac.delete_collection(%s);", [collection_id])

0 commit comments

Comments
 (0)