We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6e6717a + 823b050 commit f2809fbCopy full SHA for f2809fb
astropylibrarian/workflows/expirerecords.py
@@ -37,8 +37,8 @@ async def expire_old_records(
37
)
38
old_object_ids: List[str] = []
39
# for r in await algolia_index.browse_objects(obj).hits:
40
- records = await algolia_index.browse_objects(obj)
41
- for r in records.hits:
+ records = await algolia_index.browse_objects(obj).hits
+ for r in records:
42
# Double check that we're deleting the right things.
43
if r.root_url != root_url:
44
logger.warning("root_url does not match: %s", r.root_url)
0 commit comments