Skip to content

Commit

Permalink
Update idxtool.py
Browse files Browse the repository at this point in the history
  • Loading branch information
0xeb committed Jan 5, 2024
1 parent 0d379ce commit 7de290b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .scripts/idxtool.py
Original file line number Diff line number Diff line change
Expand Up @@ -111,10 +111,10 @@ def rebuild_toc(toc_out: str = '') -> Tuple[bool, str]:

# Count GPTs
enumerated_gpts = list(enum_gpts())
ok_count = sum(1 for ok, _ in enumerated_gpts if ok)
nb_ok = sum(1 for ok, gpt in enumerated_gpts if ok and gpt.id())

# Write the marker line and each GPT entry
out.append(f"{TOC_GPT_MARKER_LINE} ({ok_count} total)\n")
out.append(f"{TOC_GPT_MARKER_LINE} ({nb_ok} total)\n")

nb_ok = nb_total = 0
gpts = []
Expand Down

0 comments on commit 7de290b

Please sign in to comment.