Merge pull request #43 from wagesj45/codex/update-duration-dropdown-to-include-specific-directories
Update duration dropdown logic
This commit is contained in:
commit
9d55abfebe
1 changed files with 8 additions and 6 deletions
|
@ -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] = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue