From b3ca36ac5c4f65a36b557fa7a03097a1dba539c3 Mon Sep 17 00:00:00 2001 From: Sean Dockray Date: Fri, 5 Jun 2020 12:25:52 +1000 Subject: [PATCH] bytes back to string --- custom_syadmin/build_from_notion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/custom_syadmin/build_from_notion.py b/custom_syadmin/build_from_notion.py index 20f6cc2..912e1ab 100644 --- a/custom_syadmin/build_from_notion.py +++ b/custom_syadmin/build_from_notion.py @@ -113,7 +113,7 @@ def get_record_text(post): text += "---" else: prefix = prefixes.get(child.type, "") - text += prefix + str(child.title.encode('utf-8')) + "\n\n" + text += prefix + child.title.encode('utf-8').decode('utf-8') + "\n\n" text = re.sub('`bib:([a-zA-Z0-9-]+)`', r'![](bib:\1)', text) return text