Skip to content

Commit

Permalink
Merge pull request #58 from astropy/learn_site_fix3
Browse files Browse the repository at this point in the history
Test learn-astropy build
  • Loading branch information
jeffjennings authored Jan 14, 2025
2 parents c20a6dd + cfb11a6 commit 7fcb3f0
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions astropylibrarian/workflows/expirerecords.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,12 +38,12 @@ async def expire_old_records(
old_object_ids: List[str] = []
for r in await algolia_index.browse_objects(obj):
# 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
# 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(
Expand Down

0 comments on commit 7fcb3f0

Please sign in to comment.