From 9a6d0191d712ea42d93738bbb5e2d0aec6759d63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Thu, 22 Aug 2024 20:31:17 +0200 Subject: [PATCH] Handle new headline state type. --- scripts/generate.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/generate.py b/scripts/generate.py index 3405a77..c0395ef 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -736,10 +736,10 @@ def render(headline, doc, graph, headlineLevel, doc_to_headline_remapping): content.append(render(child, doc, headlineLevel=headlineLevel+1, graph=graph, doc_to_headline_remapping=doc_to_headline_remapping)) - if headline.state is None: + if headline.state is None or headline.state.get('name') is None: state = "" else: - state = f'{headline.state}' + state = f'{headline.state["name"]}' if headline.is_todo: todo_state = "todo"