summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
authorSam Wenham <sam@wenhams.co.uk>2020-02-22 15:45:20 +0000
committerSam Wenham <sam@wenhams.co.uk>2020-02-22 15:45:20 +0000
commit656ddcfe93061f2f82160ff8cc45b98d27e28bd3 (patch)
tree5e22bb56363ad7e28e2902bc7637b018706e83e0 /parsers/logbooks.py
parent505bc48331035b6fdc9d3ca5f9de77e5a98ba267 (diff)
parent92b273e45f96ac20fb182b9166b9f0a96f16eba3 (diff)
downloadtroggle-656ddcfe93061f2f82160ff8cc45b98d27e28bd3.tar.gz
troggle-656ddcfe93061f2f82160ff8cc45b98d27e28bd3.tar.bz2
troggle-656ddcfe93061f2f82160ff8cc45b98d27e28bd3.zip
Merge branch 'django-1.10' of ssh://expo.survex.com/~/troggle into django-1.10
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index 7c3189f..5bbbd98 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -167,7 +167,7 @@ def Parseloghtmltxt(year, expedition, txt):
for trippara in tripparas:
#print(" - HR detected - maybe a trip?")
logbook_entry_count += 1
-
+
s = re.match(r'''(?x)(?:\s*<div\sclass="tripdate"\sid=".*?">.*?</div>\s*<p>)? # second date
\s*(?:<a\s+id="(.*?)"\s*/>\s*</a>)?
\s*<div\s+class="tripdate"\s*(?:id="(.*?)")?>(.*?)</div>(?:<p>)?