Skip to content

Commit 267dd70

Browse files
committed
fix ppt page_key bug
1 parent 7216b06 commit 267dd70

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

examples/ppt_gen/ppt_template_model.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ def _load_config(self, config: dict[str, Any]):
7878
if key == "type_map":
7979
continue
8080

81-
page_key = key if key.endswith("_page") else f"{key}_page"
81+
page_key = key
8282
self.pages[page_key] = value
8383

8484
def render(self, slide, page_json: dict[str, Any]):
@@ -89,6 +89,8 @@ def render(self, slide, page_json: dict[str, Any]):
8989
# Get page configuration
9090

9191
page_config = self.pages.get(page_type, {})
92+
93+
print(f"page_config: {page_config}")
9294

9395
# Render all fields based on their type from YAML config
9496
for field_name, field_config in page_config.items():

0 commit comments

Comments
 (0)