forked from expo/troggle
missing print msg
This commit is contained in:
parent
2544bc5f3d
commit
e4ee4abce8
@ -658,7 +658,11 @@ def LoadLogbooks():
|
|||||||
DataIssue.objects.filter(parser='logbooks').delete()
|
DataIssue.objects.filter(parser='logbooks').delete()
|
||||||
expos = Expedition.objects.all()
|
expos = Expedition.objects.all()
|
||||||
if len(expos) <= 1:
|
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
|
noexpo = ["1986", "2020", "2021",] #no expo
|
||||||
lostlogbook = ["1976", "1977", "1978", "1979", "1980", "1981"]
|
lostlogbook = ["1976", "1977", "1978", "1979", "1980", "1981"]
|
||||||
sqlfail = ["1987", "1988", "1989"] # breaks mysql with db constraint fail - debug locally first]
|
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"
|
message = f" ! - Not even attempting to parse logbook for {expo.year} until code fixed"
|
||||||
DataIssue.objects.create(parser='logbooks', message=message)
|
DataIssue.objects.create(parser='logbooks', message=message)
|
||||||
logdataissues[f"sqlfail {expo.year}"]=message
|
logdataissues[f"sqlfail {expo.year}"]=message
|
||||||
|
print(message)
|
||||||
|
|
||||||
if expo.year not in nologbook:
|
if expo.year not in nologbook:
|
||||||
print((" - Logbook for: " + expo.year))
|
print((" - Logbook for: " + expo.year))
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
<!-- expobase.html - this text visible because this template has been included -->
|
||||||
{% autoescape off %}
|
{% autoescape off %}
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
|
@ -1,3 +1,4 @@
|
|||||||
|
<!-- frontpage.html - this text visible because this template has been included -->
|
||||||
{% extends "base.html" %}
|
{% extends "base.html" %}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user