Skip to content

Commit 909c622

Browse files
authored
Merge pull request #60 from astropy/algolia_hit
expire_old_records: loop over hits
2 parents e6ed9f3 + 26eaf42 commit 909c622

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

astropylibrarian/workflows/expirerecords.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ async def expire_old_records(
3636
attributes_to_highlight=[],
3737
)
3838
old_object_ids: List[str] = []
39-
for r in await algolia_index.browse_objects(obj):
40-
print(r)
39+
for r in await algolia_index.browse_objects(obj).hits:
4140
# Double check that we're deleting the right things.
4241
if r.root_url != root_url:
4342
logger.warning("root_url does not match: %s", r.root_url)

0 commit comments

Comments
 (0)