From 246d5852139ee08d00e17b0c15d595f67ab33011 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20Mart=C3=ADnez=20Portela?= Date: Tue, 23 Aug 2022 00:05:03 +0200 Subject: [PATCH] Fix headline title selection when taking ID from document. --- scripts/generate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/generate.py b/scripts/generate.py index 1597b14..74edabd 100644 --- a/scripts/generate.py +++ b/scripts/generate.py @@ -124,7 +124,7 @@ def regen_all(src_top, dest_top, docs=None): with open(endpath, "wt") as f: doc_to_headline_remapping['id:' + doc.id] = 'id:' + main_headline.id - f.write(as_document(render(main_headline, doc, headlineLevel=0), headline.title)) + f.write(as_document(render(main_headline, doc, headlineLevel=0), main_headline.title)) files_generated += 1 elif doc.id is not None: logging.error("Cannot render document from id: {}. {} headlines {} related".format(