From 17b2b7b89c2ce34471251a64a1f7c9e416a1c869 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 7 Dec 2022 18:22:09 +0000 Subject: fix comments and 2019 LB parsing --- parsers/logbooks.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'parsers/logbooks.py') diff --git a/parsers/logbooks.py b/parsers/logbooks.py index bf7039d..b67369c 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -44,6 +44,9 @@ 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. + ''' MAX_LOGBOOK_ENTRY_TITLE_LENGTH = 200 DEFAULT_LOGBOOK_PARSER = "parser_html" @@ -83,7 +86,7 @@ LOGBOOK_PARSER_SETTINGS = { "1982": ("log.htm", "parser_html_01"), } -entries = { "2022": 64, "2019": 55, "2018": 74, "2017": 60, "2016": 81, "2015": 79, +entries = { "2022": 64, "2019": 56, "2018": 74, "2017": 60, "2016": 81, "2015": 79, "2014": 65, "2013": 51, "2012": 75, "2011": 68, "2010": 22, "2009": 52, "2008": 49, "2007": 111, "2006": 60, "2005": 55, "2004": 76, "2003": 40, "2002": 31, "2001": 48, "2000": 54, "1999": 79, "1998": 43, "1997": 53, "1996": 94, "1995": 41, -- cgit v1.2.3