Skip to content

Commit

Permalink
Merge pull request #60 from astropy/algolia_hit
Browse files Browse the repository at this point in the history
expire_old_records: loop over hits
  • Loading branch information
jeffjennings authored Jan 28, 2025
2 parents e6ed9f3 + 26eaf42 commit 909c622
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions astropylibrarian/workflows/expirerecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 909c622

Please sign in to comment.