Update idxtool.py
This commit is contained in:
@@ -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 = []
|
||||||
|
|||||||
Reference in New Issue
Block a user