Skip to content

Commit 5c6a874

Browse files
committed
async bug
1 parent 1b42ee7 commit 5c6a874

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

astropylibrarian/workflows/expirerecords.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,9 @@ 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).hits
40+
# records = await algolia_index.browse_objects(obj).hits
41+
response = await algolia_index.browse_objects(obj)
42+
records = response.get("hits")
4143
for r in records:
4244
# Double check that we're deleting the right things.
4345
if r.root_url != root_url:

0 commit comments

Comments
 (0)