From 24079ab5fe161085b437eda68bd367b87ff9bee4 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 20 Jul 2025 11:46:27 +0200 Subject: [PATCH] remove endmatter creation from now on --- parsers/logbooks.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/parsers/logbooks.py b/parsers/logbooks.py index 86ff796..b2d99aa 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -381,6 +381,8 @@ def parser_html(year, expedition, txt, seq=""): for a new year logbook will move the endmatter up to the frontmatter. This made sense when translating from parser_html_01 format logfiles, believe me. + + Now that all the old logbooks have been converted, the endmatter relocation is now disabled. """ logentries = [] dupl = {} @@ -405,10 +407,10 @@ def parser_html(year, expedition, txt, seq=""): endpara = "" if len(endpara) > 0: - print(f"\n - {year} endpara:\n'{endpara}'") - endpath = Path(settings.EXPOWEB, LOGBOOKS_DIR, year, "endmatter.html") - with open(endpath, "w") as end: - end.write(endpara + "\n") + print(f"\n - {year} endpara:\n'{endpara}'\n\n NOT creating endmatter.html from 2025 onwards") + # endpath = Path(settings.EXPOWEB, LOGBOOKS_DIR, year, "endmatter.html") + # with open(endpath, "w") as end: + # end.write(endpara + "\n") if tripparas := re.findall(r"([\s\S]*?)(?=