Skip to content

Commit

Permalink
Merge pull request #59 from astropy/learn_site_fix4
Browse files Browse the repository at this point in the history
Debugging: test learn-astropy build
  • Loading branch information
jeffjennings authored Jan 14, 2025
2 parents 7fcb3f0 + bdda033 commit e6ed9f3
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions astropylibrarian/workflows/expirerecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,14 +37,15 @@ async def expire_old_records(
)
old_object_ids: List[str] = []
for r in await algolia_index.browse_objects(obj):
print(r)
# Double check that we're deleting the right things.
# if r["root_url"] != root_url:
# logger.warning("root_url does not match: %s", r["root_url"])
# continue
# if r["index_epoch"] == index_epoch:
# logger.warning("index_epoch matches current epoch: %s", r["index_epoch"])
# continue
old_object_ids.append(r["objectID"])
if r.root_url != root_url:
logger.warning("root_url does not match: %s", r.root_url)
continue
if r.index_epoch == index_epoch:
logger.warning("index_epoch matches current epoch: %s", r.index_epoch)
continue
old_object_ids.append(r.objectID)

logger.info(
"Collected %d old objectIDs for deletion, for %s",
Expand Down

0 comments on commit e6ed9f3

Please sign in to comment.