Skip to content

Commit 823b050

Browse files
committed
await hits
1 parent 6e6717a commit 823b050

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

astropylibrarian/workflows/expirerecords.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ async def expire_old_records(
3737
)
3838
old_object_ids: List[str] = []
3939
# for r in await algolia_index.browse_objects(obj).hits:
40-
records = await algolia_index.browse_objects(obj)
41-
for r in records.hits:
40+
records = await algolia_index.browse_objects(obj).hits
41+
for r in records:
4242
# Double check that we're deleting the right things.
4343
if r.root_url != root_url:
4444
logger.warning("root_url does not match: %s", r.root_url)

0 commit comments

Comments
 (0)