mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 18:57:13 +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
|
||||
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"<hr\s*/>([\s\S]*?)(?=<hr)", txt): # WALRUS OPERATOR
|
||||
pass
|
||||
|
||||
Reference in New Issue
Block a user