mirror of
https://github.com/LouisShark/chatgpt_system_prompt.git
synced 2025-07-05 14:20:33 -04:00
Update idxtool.py
This commit is contained in:
parent
0d379ce03f
commit
7de290b809
1 changed files with 2 additions and 2 deletions
|
@ -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 = []
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue