diff --git a/astropylibrarian/workflows/expirerecords.py b/astropylibrarian/workflows/expirerecords.py index 1eb1638..6dd8e6d 100644 --- a/astropylibrarian/workflows/expirerecords.py +++ b/astropylibrarian/workflows/expirerecords.py @@ -36,8 +36,7 @@ async def expire_old_records( attributes_to_highlight=[], ) old_object_ids: List[str] = [] - for r in await algolia_index.browse_objects(obj): - print(r) + for r in await algolia_index.browse_objects(obj).hits: # Double check that we're deleting the right things. if r.root_url != root_url: logger.warning("root_url does not match: %s", r.root_url)