From a49b67ebc4f3905354fc83e9bba52a0272fbf7f5 Mon Sep 17 00:00:00 2001 From: smohiudd Date: Fri, 26 Apr 2024 11:00:24 -0600 Subject: [PATCH 1/2] change get username function --- ingest_api/runtime/src/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ingest_api/runtime/src/main.py b/ingest_api/runtime/src/main.py index 9517a195..3f429801 100644 --- a/ingest_api/runtime/src/main.py +++ b/ingest_api/runtime/src/main.py @@ -63,7 +63,7 @@ async def list_ingestions( ) async def enqueue_ingestion( item: schemas.AccessibleItem, - username: str = Depends(auth.validated_token), + username: str = Depends(auth.get_username), db: services.Database = Depends(dependencies.get_db), ) -> schemas.Ingestion: """ From 87b649f3988fd52a0d70c00dd3530decf75f60b3 Mon Sep 17 00:00:00 2001 From: smohiudd Date: Fri, 26 Apr 2024 11:04:52 -0600 Subject: [PATCH 2/2] format --- ingest_api/runtime/src/vedaloader.py | 1 - 1 file changed, 1 deletion(-) diff --git a/ingest_api/runtime/src/vedaloader.py b/ingest_api/runtime/src/vedaloader.py index 00021e44..f98afe1e 100644 --- a/ingest_api/runtime/src/vedaloader.py +++ b/ingest_api/runtime/src/vedaloader.py @@ -20,7 +20,6 @@ def update_collection_summaries(self, collection_id: str) -> None: STAC-conformant bbox and temporal extent.""" with self.conn.cursor() as cur: with self.conn.transaction(): - # First update the spatial and temporal extents for all item records for the collection logger.info(f"Updating extents for collection: {collection_id}.") cur.execute(