2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 21:37:07 +00:00

improving cave identification in logbooks

This commit is contained in:
2025-03-02 00:37:28 +00:00
parent 7fb42c926f
commit 3bdf73ccad

View File

@@ -453,9 +453,13 @@ def parser_html(year, expedition, txt, seq=""):
tid = reset_trip_id(ldate)
triptitles = triptitle.split(" - ")
if len(triptitles) >= 2:
place = triptitles[0]
place = triptitles[0].split()[0]
else:
place = "Unknown"
p = triptitle.split()
if len(p) >= 2:
place = p[0]
else:
place = triptitle
# tripcontent = re.sub(r"</p>", "", triptext)
# tripcontent = re.sub(r"<p>", "<br /><br />", tripcontent).strip()
tripcontent = triptext.strip()