From 8a61b9d40bd13bc8c81a06fd9624f643ba542607 Mon Sep 17 00:00:00 2001 From: bigbyto Date: Wed, 3 Jul 2024 13:30:24 +0800 Subject: [PATCH] fix: telegraph --- handlers/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handlers/__init__.py b/handlers/__init__.py index 0f5d961..57ca2af 100644 --- a/handlers/__init__.py +++ b/handlers/__init__.py @@ -402,7 +402,7 @@ class TelegraphAPI: ] if element.attrs: - tag_dict["attributes"] = element.attrs + tag_dict["attrs"] = element.attrs if element.contents: children = [] for child in element.contents: @@ -413,7 +413,7 @@ class TelegraphAPI: tag_dict["children"] = children else: if element.attrs: - tag_dict["attributes"] = element.attrs + tag_dict["attrs"] = element.attrs if element.contents: children = [] for child in element.contents: