From e4ee4abce8c50f7b574b7debf09a34931cd5c7f3 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 18 Mar 2022 10:21:25 +0000 Subject: [PATCH] missing print msg --- parsers/logbooks.py | 7 ++++++- templates/expobase.html | 1 + templates/frontpage.html | 1 + 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/parsers/logbooks.py b/parsers/logbooks.py index e59f46e..c41dd08 100644 --- a/parsers/logbooks.py +++ b/parsers/logbooks.py @@ -658,7 +658,11 @@ def LoadLogbooks(): DataIssue.objects.filter(parser='logbooks').delete() expos = Expedition.objects.all() if len(expos) <= 1: - print(" ! No expeditions found. Load 'people' first.\n") + message = f" ! - No expeditions found. Load 'people' first" + DataIssue.objects.create(parser='logbooks', message=message) + logdataissues[f"sqlfail 0000"]=message + print(message) + noexpo = ["1986", "2020", "2021",] #no expo lostlogbook = ["1976", "1977", "1978", "1979", "1980", "1981"] sqlfail = ["1987", "1988", "1989"] # breaks mysql with db constraint fail - debug locally first] @@ -684,6 +688,7 @@ def LoadLogbooks(): message = f" ! - Not even attempting to parse logbook for {expo.year} until code fixed" DataIssue.objects.create(parser='logbooks', message=message) logdataissues[f"sqlfail {expo.year}"]=message + print(message) if expo.year not in nologbook: print((" - Logbook for: " + expo.year)) diff --git a/templates/expobase.html b/templates/expobase.html index f3c6918..689bd66 100644 --- a/templates/expobase.html +++ b/templates/expobase.html @@ -1,3 +1,4 @@ + {% autoescape off %} diff --git a/templates/frontpage.html b/templates/frontpage.html index 4405d10..866798a 100644 --- a/templates/frontpage.html +++ b/templates/frontpage.html @@ -1,3 +1,4 @@ + {% extends "base.html" %}