missing print msg

This commit is contained in:
Philip Sargent 2022-03-18 10:21:25 +00:00
parent 2544bc5f3d
commit e4ee4abce8
3 changed files with 8 additions and 1 deletions

View File

@ -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))

View File

@ -1,3 +1,4 @@
<!-- expobase.html - this text visible because this template has been included -->
{% autoescape off %}
<html>
<head>

View File

@ -1,3 +1,4 @@
<!-- frontpage.html - this text visible because this template has been included -->
{% extends "base.html" %}