summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parsers/imports.py2
-rw-r--r--parsers/logbooks.py10
-rw-r--r--templates/cavewallets.html2
-rw-r--r--templates/logbookentry.html2
-rw-r--r--templates/yearwallets.html2
5 files changed, 9 insertions, 9 deletions
diff --git a/parsers/imports.py b/parsers/imports.py
index e44a2f0..e445a2a 100644
--- a/parsers/imports.py
+++ b/parsers/imports.py
@@ -41,7 +41,7 @@ def import_logbooks():
with transaction.atomic():
troggle.parsers.logbooks.LoadLogbooks()
-def import_logbook(year=2019):
+def import_logbook(year=1982):
print(f"-- Importing Logbook {year}")
with transaction.atomic():
troggle.parsers.logbooks.LoadLogbook(year)
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index aaa764a..e3d9d06 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -77,10 +77,10 @@ LOGBOOK_PARSER_SETTINGS = {
"1989": ("log.htm", "parser_html_01"), #crashes MySQL
"1988": ("log.htm", "parser_html_01"), #crashes MySQL
"1987": ("log.htm", "parser_html_01"), #crashes MySQL
- "1985": ("log.htm", "parser_html_01"),
- "1984": ("log.htm", "parser_html_01"),
- "1983": ("log.htm", "parser_html_01"),
- "1982": ("log.htm", "parser_html_01"),
+ "1985": ("logbook.html", "parser_html"),
+ "1984": ("logbook.html", "parser_html"),
+ "1983": ("logbook.html", "parser_html"),
+ "1982": ("logbook.html", "parser_html"),
}
entries = { "2022": 86, "2019": 56, "2018": 100, "2017": 76, "2016": 83, "2015": 79,
@@ -89,7 +89,7 @@ entries = { "2022": 86, "2019": 56, "2018": 100, "2017": 76, "2016": 83, "2015":
"2001": 48, "2000": 54, "1999": 79, "1998": 43, "1997": 53, "1996": 95, "1995": 42,
"1994": 32, "1993": 41, "1992": 62, "1991": 39, "1990": 87, "1989": 1,"1988": 1,"1987": 1,
"1985": 24, "1984": 32, "1983": 52, "1982": 42,}
-# Logbooks log.htm exist for 1983, 84, 85, 87, 88, 89 but have no full-working parser, or need hand-editing.
+# Logbooks log.htm exist for 87, 88, 89 but have no full-working parser, or need hand-editing.
logentries = [] # the entire logbook for one year is a single object: a list of entries
noncaveplaces = [ "Journey", "Loser Plateau", "UNKNOWN", 'plateau',
diff --git a/templates/cavewallets.html b/templates/cavewallets.html
index 074ad13..6909bb2 100644
--- a/templates/cavewallets.html
+++ b/templates/cavewallets.html
@@ -15,7 +15,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<p>This lists all the files in a wallet, some of which may not be for this specific cave.
<p>See also wallets
<ul>
-<li>per person, e.g. <a href="/wallets/person/Wookey">Wookey</a>, <a href="/wallets/person/ChrisDensham">Chris Densham</a>, <a href="/wallets/person/MartinGreen">Martin Green</a>, <a href="/wallets/person/AndrewAtkinson">Andrew Atkinson</a>, <a href="/wallets/person/JulianTodd">Julian Todd</a>, <a href="/wallets/person/Jenny Black">Jenny Black</a> <a href="/wallets/person/FrankTully">FrankTully</a>, <a href="/wallets/person/BeckaLawson">Becka</a>
+<li>per person, e.g. <a href="/wallets/person/Wookey">Wookey</a>, <a href="/wallets/person/ChrisDensham">Chris Densham</a>, <a href="/wallets/person/MartinGreen">Martin Green</a>, <a href="/wallets/person/AndrewAtkinson">Andrew Atkinson</a>, <a href="/wallets/person/JulianTodd">Julian Todd</a>, <a href="/wallets/person/Jenny Black">Jenny Black</a> <a href="/wallets/person/FrankTully">Frank Tully</a>, <a href="/wallets/person/DaveLoeffler">Dave Loeffler</a>, <a href="/wallets/person/BeckaLawson">Becka</a>
<li>per year:
{% for otherexpedition in expeditions %}
| <a <a href="/wallets/year/{{ otherexpedition.year }}">{{otherexpedition.year}}</a>
diff --git a/templates/logbookentry.html b/templates/logbookentry.html
index 8a68c36..584da8e 100644
--- a/templates/logbookentry.html
+++ b/templates/logbookentry.html
@@ -1,6 +1,6 @@
{% extends "base.html" %}
<!-- templates/logbookentry.html - this text visible because this template has been included -->
-{% block title %}Logbook {{logbookentry.expedition.name}}{% endblock %}
+{% block title %}Logbook {{logbookentry.expedition.name}} {{logbookentry.title|safe}}{% endblock %}
{% block content %}
{% block related %}{% endblock %}
diff --git a/templates/yearwallets.html b/templates/yearwallets.html
index c93947e..2b43fc8 100644
--- a/templates/yearwallets.html
+++ b/templates/yearwallets.html
@@ -16,7 +16,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
<p>See also wallets
<ul style="width: 78%">
<li>per cave, e.g. <a href="/cave/scans/1623-161">1623-161</a>, <a href="/cave/scans/1626-359">1626-359</a>, <a href="/cave/scans/1623-290">1623-290</a>, <a href="/cave/scans/1623-291">1623-291</a>, <a href="/cave/scans/1623-264">1623-264</a>
-<li>per person, e.g. <a href="/wallets/person/Wookey">Wookey</a>, <a href="/wallets/person/ChrisDensham">Chris Densham</a>, <a href="/wallets/person/MartinGreen">Martin Green</a>, <a href="/wallets/person/AndrewAtkinson">Andrew Atkinson</a>, <a href="/wallets/person/JulianTodd">Julian Todd</a>, <a href="/wallets/person/Frank Tully">FrankTully</a>, <a href="/wallets/person/BeckaLawson">Becka</a>
+<li>per person, e.g. <a href="/wallets/person/Wookey">Wookey</a>, <a href="/wallets/person/ChrisDensham">Chris Densham</a>, <a href="/wallets/person/MartinGreen">Martin Green</a>, <a href="/wallets/person/AndrewAtkinson">Andrew Atkinson</a>, <a href="/wallets/person/JulianTodd">Julian Todd</a>, <a href="/wallets/person/Frank Tully">FrankTully</a>, <a href="/wallets/person/DaveLoeffler">Dave Loeffler</a>, <a href="/wallets/person/BeckaLawson">Becka</a>
<li>other years:
{% for otherexpedition in expeditions %}
{% if otherexpedition == expedition %}