summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-01-16 19:52:05 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2023-01-16 19:52:05 +0000
commit1b70ccea3e782b171560e997499c19015e8b5980 (patch)
tree2ba4bc73b0f6c6ac2bfa8079485194592cd25344 /parsers/logbooks.py
parent822965ebe5170fac7946ce0fefa442aeb001d1aa (diff)
downloadtroggle-1b70ccea3e782b171560e997499c19015e8b5980.tar.gz
troggle-1b70ccea3e782b171560e997499c19015e8b5980.tar.bz2
troggle-1b70ccea3e782b171560e997499c19015e8b5980.zip
consistent tests with logbooks junk removal
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index 8501b89..a6d94f4 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -23,7 +23,7 @@ Parses and imports logbooks in all their wonderful confusion
todo='''
- refactor everything with some urgency, esp. LoadLogbookForExpedition()
-- remove the TROG and lbo things since we need the database for multiuser access? Or not?
+- remove the TROG things since we need the database for multiuser access? Or not?
- profile the code to find bad repetitive things, of which there are many.
@@ -44,7 +44,7 @@ todo='''
- this is a slow and uncertain function: cave = getCaveByReference(caveRef)
- use Fixtures https://docs.djangoproject.com/en/4.1/ref/django-admin/#django-admin-loaddata to cache
-data for old logbooks. New design needed, with a mechanism for flagging fixtures as outdated after edits.
+data for old logbooks? Not worth it..
'''
MAX_LOGBOOK_ENTRY_TITLE_LENGTH = 200
@@ -57,6 +57,7 @@ BLOG_PARSER_SETTINGS = {
DEFAULT_LOGBOOK_FILE = "logbook.html"
DEFAULT_LOGBOOK_PARSER = "parser_html"
# All years since 2002 use the default value for Logbook parser
+# dont forget to update expoweb/pubs.htm to match.
LOGBOOK_PARSER_SETTINGS = {
"2002": ("logbook.html", "parser_html"),
"2001": ("log.htm", "parser_html_01"),