diff --git a/astropylibrarian/workflows/indexjupyterbookpage.py b/astropylibrarian/workflows/indexjupyterbookpage.py index 2f50510..373bae6 100644 --- a/astropylibrarian/workflows/indexjupyterbookpage.py +++ b/astropylibrarian/workflows/indexjupyterbookpage.py @@ -43,7 +43,7 @@ async def index_jupyterbook_page( "Indexing %d records for Jupyter Book page at %s", len(records), url ) response = await algolia_index.save_objects(objects=records) - logger.debug("Algolia save_objects: %s", response.raw_responses) + # logger.debug("Algolia save_objects: %s", response.raw_responses) object_ids = [r["objectID"] for r in records] diff --git a/astropylibrarian/workflows/indextutorial.py b/astropylibrarian/workflows/indextutorial.py index 393875b..94c973a 100644 --- a/astropylibrarian/workflows/indextutorial.py +++ b/astropylibrarian/workflows/indextutorial.py @@ -178,8 +178,8 @@ async def index_tutorial( str(e), ) return [] - for r in response.raw_responses: - _oids = r.get("objectIDs", []) + for r in response: + _oids = r.get("object_ids", []) assert isinstance(_oids, list) saved_object_ids.extend(_oids) logger.info(