Skip to content

Commit

Permalink
Merge pull request #53 from astropy/algolia_9
Browse files Browse the repository at this point in the history
response loop
  • Loading branch information
jeffjennings authored Nov 1, 2024
2 parents 7ee2079 + 625fcaf commit a989872
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion astropylibrarian/workflows/indexjupyterbookpage.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]

Expand Down
4 changes: 2 additions & 2 deletions astropylibrarian/workflows/indextutorial.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down

0 comments on commit a989872

Please sign in to comment.