File tree Expand file tree Collapse file tree 1 file changed +8
-7
lines changed
astropylibrarian/workflows Expand file tree Collapse file tree 1 file changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -37,14 +37,15 @@ async def expire_old_records(
37
37
)
38
38
old_object_ids : List [str ] = []
39
39
for r in await algolia_index .browse_objects (obj ):
40
+ print (r )
40
41
# Double check that we're deleting the right things.
41
- # if r[" root_url"] != root_url:
42
- # logger.warning("root_url does not match: %s", r[" root_url"] )
43
- # continue
44
- # if r[" index_epoch"] == index_epoch:
45
- # logger.warning("index_epoch matches current epoch: %s", r[" index_epoch"] )
46
- # continue
47
- old_object_ids .append (r [ " objectID" ] )
42
+ if r . root_url != root_url :
43
+ logger .warning ("root_url does not match: %s" , r . root_url )
44
+ continue
45
+ if r . index_epoch == index_epoch :
46
+ logger .warning ("index_epoch matches current epoch: %s" , r . index_epoch )
47
+ continue
48
+ old_object_ids .append (r . objectID )
48
49
49
50
logger .info (
50
51
"Collected %d old objectIDs for deletion, for %s" ,
You can’t perform that action at this time.
0 commit comments