From 3c8214a3212b02876f8df4a2b819bef8a7aaf43c Mon Sep 17 00:00:00 2001 From: Ray Date: Tue, 21 Jul 2026 17:10:31 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20drop=20the=20lowercase-summary=20comme?= =?UTF-8?q?nt=20=E2=80=94=20the=20server=20parses=20bools=20case-insensiti?= =?UTF-8?q?vely=20(0.2.x=20sent=20'True'=20for=20years)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pageindex/cloud_api.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/pageindex/cloud_api.py b/pageindex/cloud_api.py index 37029e2..12357d7 100644 --- a/pageindex/cloud_api.py +++ b/pageindex/cloud_api.py @@ -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", )