Fix headline title selection when taking ID from document.
This commit is contained in:
parent
a4981632e5
commit
246d585213
@ -124,7 +124,7 @@ def regen_all(src_top, dest_top, docs=None):
|
|||||||
with open(endpath, "wt") as f:
|
with open(endpath, "wt") as f:
|
||||||
doc_to_headline_remapping['id:' + doc.id] = 'id:' + main_headline.id
|
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
|
files_generated += 1
|
||||||
elif doc.id is not None:
|
elif doc.id is not None:
|
||||||
logging.error("Cannot render document from id: {}. {} headlines {} related".format(
|
logging.error("Cannot render document from id: {}. {} headlines {} related".format(
|
||||||
|
Loading…
Reference in New Issue
Block a user