mirror of
https://github.com/VectifyAI/PageIndex.git
synced 2026-07-24 21:41:04 +02:00
chore: drop the lowercase-summary comment — the server parses bools case-insensitively (0.2.x sent 'True' for years)
This commit is contained in:
parent
f5552546c6
commit
3c8214a321
1 changed files with 0 additions and 4 deletions
|
|
@ -101,10 +101,6 @@ class LegacyCloudAPI:
|
|||
def get_tree(self, doc_id: str, node_summary: bool = False) -> dict[str, Any]:
|
||||
response = self._request(
|
||||
"GET",
|
||||
# Lowercase the bool: a Python f-string renders True/False with a
|
||||
# capital letter, but the API expects summary=true/false (the modern
|
||||
# CloudBackend sends lowercase). A case-sensitive server would
|
||||
# otherwise silently drop node summaries.
|
||||
f"/doc/{self._enc(doc_id)}/?type=tree&summary={'true' if node_summary else 'false'}",
|
||||
"Failed to get tree result",
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue