Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 0 additions & 12 deletions src/hflow/catalog.py
Original file line number Diff line number Diff line change
Expand Up @@ -204,18 +204,6 @@ def latest_quarantine(
)


def latest_quarantine_state(
catalog_root: "Path | str | StorageRoot", episode_id: str
) -> bool | None:
"""Whether ``episode_id``'s most recent cataloged run left it quarantined.

``None`` when the catalog or the episode is unknown -- no catalog means
no known quarantine, and callers proceed.
"""
latest = latest_quarantine(catalog_root, episode_id)
return None if latest is None else latest.quarantined


def content_episode_id(canonical_path: Path) -> str:
"""Content-address an episode: sha256 of the canonical file, 16 hex chars."""
digest = hashlib.sha256()
Expand Down
Loading