diff --git a/astropylibrarian/workflows/indexjupyterbookpage.py b/astropylibrarian/workflows/indexjupyterbookpage.py index 9723f42..e29d424 100644 --- a/astropylibrarian/workflows/indexjupyterbookpage.py +++ b/astropylibrarian/workflows/indexjupyterbookpage.py @@ -42,7 +42,7 @@ async def index_jupyterbook_page( logger.debug( "Indexing %d records for Jupyter Book page at %s", len(records), url ) - response = await algolia_index.save_objects(records) + response = await algolia_index.save_objects(records=records) 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 8aa0d9e..393875b 100644 --- a/astropylibrarian/workflows/indextutorial.py +++ b/astropylibrarian/workflows/indextutorial.py @@ -170,7 +170,7 @@ async def index_tutorial( saved_object_ids: List[str] = [] try: - response = await algolia_index.save_objects(records) + response = await algolia_index.save_objects(objects=records) except RequestException as e: logger.error( "Error saving objects for tutorial %s:\n%s",