Update duration dropdown logic #43

Merged
wagesj45 merged 1 commit from codex/update-duration-dropdown-to-include-specific-directories into main 2025-07-19 04:08:52 -05:00
Showing only changes of commit 66b1209486 - Show all commits

Fix dropdown duration dirs

Jordan Wages 2025-07-19 04:08:40 -05:00

View file

@ -192,12 +192,14 @@ def _generate_all_domains(interval: str) -> None:
def _generate_root_index() -> None: def _generate_root_index() -> None:
"""Render the top-level index listing all intervals and domains.""" """Render the top-level index listing all intervals and domains."""
_copy_icons() _copy_icons()
intervals = [ intervals = sorted(
p.name [
for p in OUTPUT_DIR.iterdir() name
if p.is_dir() and p.name.lower() not in {"domains", "global", "analysis"} for name in INTERVAL_FORMATS
] if (OUTPUT_DIR / name).is_dir()
intervals.sort() ]
)
domains_dir = OUTPUT_DIR / "domains" domains_dir = OUTPUT_DIR / "domains"
domains: List[str] = [] domains: List[str] = []