Update idxtool.py

This commit is contained in:
Elias Bachaalany 2024-01-04 19:15:43 -08:00
parent 0d379ce03f
commit 7de290b809

View file

@ -111,10 +111,10 @@ def rebuild_toc(toc_out: str = '') -> Tuple[bool, str]:
# Count GPTs # Count GPTs
enumerated_gpts = list(enum_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 # 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 nb_ok = nb_total = 0
gpts = [] gpts = []