summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2020-02-22 15:38:22 +0000
committerSam Wenham <sam@wenhams.co.uk>2020-02-22 15:38:22 +0000
commit505bc48331035b6fdc9d3ca5f9de77e5a98ba267 (patch)
treead796c10afc7b451d5080204be67d47ec65ab5a9 /parsers/logbooks.py
parentde22b071b0749fef13ea3c53faaed1adb3191356 (diff)
downloadtroggle-505bc48331035b6fdc9d3ca5f9de77e5a98ba267.tar.gz
troggle-505bc48331035b6fdc9d3ca5f9de77e5a98ba267.tar.bz2
troggle-505bc48331035b6fdc9d3ca5f9de77e5a98ba267.zip
Show coordinates for entrance
Use filter to find coordinates
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index 012d771..7c3189f 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -32,6 +32,7 @@ def GetTripPersons(trippeople, expedition, logtime_underground):
round_bracket_regex = re.compile(r"[\(\[].*?[\)\]]")
for tripperson in re.split(r",|\+|&amp;|&(?!\w+;)| and ", trippeople):
tripperson = tripperson.strip()
+ tripperson = tripperson.strip('.')
mul = re.match(r"<u>(.*?)</u>$(?i)", tripperson)
if mul:
tripperson = mul.group(1).strip()
@@ -183,9 +184,6 @@ def Parseloghtmltxt(year, expedition, txt):
continue
tripid, tripid1, tripdate, trippeople, triptitle, triptext, tu = s.groups()
ldate = ParseDate(tripdate.strip(), year)
- #assert tripid[:-1] == "t" + tripdate, (tripid, tripdate)
- #trippeople = re.sub(r"Ol(?!l)", "Olly", trippeople)
- #trippeople = re.sub(r"Wook(?!e)", "Wookey", trippeople)
triptitles = triptitle.split(" - ")
if len(triptitles) >= 2:
tripcave = triptitles[0]