mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-16 22:07:03 +00:00
remove endmatter creation from now on
This commit is contained in:
@@ -381,6 +381,8 @@ def parser_html(year, expedition, txt, seq=""):
|
|||||||
for a new year logbook will move
|
for a new year logbook will move
|
||||||
the endmatter up to the frontmatter. This made sense when translating
|
the endmatter up to the frontmatter. This made sense when translating
|
||||||
from parser_html_01 format logfiles, believe me.
|
from parser_html_01 format logfiles, believe me.
|
||||||
|
|
||||||
|
Now that all the old logbooks have been converted, the endmatter relocation is now disabled.
|
||||||
"""
|
"""
|
||||||
logentries = []
|
logentries = []
|
||||||
dupl = {}
|
dupl = {}
|
||||||
@@ -405,10 +407,10 @@ def parser_html(year, expedition, txt, seq=""):
|
|||||||
endpara = ""
|
endpara = ""
|
||||||
|
|
||||||
if len(endpara) > 0:
|
if len(endpara) > 0:
|
||||||
print(f"\n - {year} endpara:\n'{endpara}'")
|
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")
|
# endpath = Path(settings.EXPOWEB, LOGBOOKS_DIR, year, "endmatter.html")
|
||||||
with open(endpath, "w") as end:
|
# with open(endpath, "w") as end:
|
||||||
end.write(endpara + "\n")
|
# end.write(endpara + "\n")
|
||||||
|
|
||||||
if tripparas := re.findall(r"<hr\s*/>([\s\S]*?)(?=<hr)", txt): # WALRUS OPERATOR
|
if tripparas := re.findall(r"<hr\s*/>([\s\S]*?)(?=<hr)", txt): # WALRUS OPERATOR
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user