Skip to content

Commit

Permalink
bugfix(ingestor): queries require sequences (#23)
Browse files Browse the repository at this point in the history
Fix failures around when the STAC Ingestor attempts to update collection summaries.
  • Loading branch information
alukach authored Mar 16, 2023
1 parent 01400e6 commit 0202dc5
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/ingestor-api/runtime/src/vedaloader.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,19 +28,19 @@ def update_collection_summaries(self, collection_id: str) -> None:
)
cur.execute(
"SELECT dashboard.update_collection_default_summaries(%s)",
collection_id,
[collection_id],
)
logger.info("Updating bbox for collection: {}.".format(collection_id))
cur.execute("SELECT pgstac.collection_bbox(%s)", collection_id)
cur.execute("SELECT pgstac.collection_bbox(%s)", [collection_id])
logger.info(
"Updating temporal extent for collection: {}.".format(collection_id)
)
cur.execute(
"SELECT pgstac.collection_temporal_extent(%s)", collection_id
"SELECT pgstac.collection_temporal_extent(%s)", [collection_id]
)

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

0 comments on commit 0202dc5

Please sign in to comment.