From 05c5e26e9991fb3e753759c50bc1f29e3592704e Mon Sep 17 00:00:00 2001 From: Sam Wenham Date: Tue, 2 Apr 2019 02:04:38 +0100 Subject: [PATCH] Sort people by notability Better errors and tidy Nicer date formats --- parsers/logbooks.py | 2 +- parsers/surveys.py | 3 --- templates/expedition.html | 2 +- templates/logbookentry.html | 4 ++-- templates/personindex.html | 4 ++-- 5 files changed, 6 insertions(+), 9 deletions(-) diff --git a/parsers/logbooks.py b/parsers/logbooks.py index cecbdb3..2d1875a 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -78,7 +78,7 @@ def EnterLogIntoDbase(date, place, title, text, trippeople, expedition, logtime_ """ saves a logbook entry and related persontrips """ trippersons, author = GetTripPersons(trippeople, expedition, logtime_underground) if not author: - print(" - Skipping logentry: " + title + " no author for entry") + print(" - Skipping logentry: " + title + " - no author for entry") return #tripCave = GetTripCave(place) diff --git a/parsers/surveys.py b/parsers/surveys.py index 29070e8..efab536 100644 --- a/parsers/surveys.py +++ b/parsers/surveys.py @@ -174,9 +174,6 @@ def GetListDir(sdir): ff = os.path.join(sdir, f) res.append((f, ff, os.path.isdir(ff))) return res - - - def LoadListScansFile(survexscansfolder): diff --git a/templates/expedition.html b/templates/expedition.html index 7c0ecd5..0b0d360 100644 --- a/templates/expedition.html +++ b/templates/expedition.html @@ -69,7 +69,7 @@ an "S" for a survey trip. The colours are the same for people on the same trip. {% regroup dateditems|dictsort:"date" by date as dates %} {% for date in dates %} -{{date.grouper}} +{{date.grouper|date:"D d M Y"}} {% for item in date.list %} {% if item.isLogbookEntry %}{{item.title|safe}}
{% endif %} {% endfor %} diff --git a/templates/logbookentry.html b/templates/logbookentry.html index 0534de9..5c8c341 100644 --- a/templates/logbookentry.html +++ b/templates/logbookentry.html @@ -7,7 +7,7 @@ {% block related %}{% endblock %} {% block nav %}{% endblock %} -

{{logbookentry.title}}

+

{{logbookentry.title|safe}}