summaryrefslogtreecommitdiffstats
path: root/parsers/logbooks.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-09-05 15:49:12 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-09-05 15:49:12 +0300
commit220e1327d743b3b3c65b2d37aebdc063ca3c18a3 (patch)
tree285725262a7660fc1e080a59ad8e33e5a8c56285 /parsers/logbooks.py
parent0ea8fadaebb93b4f7299d621e86419088fed4acb (diff)
downloadtroggle-220e1327d743b3b3c65b2d37aebdc063ca3c18a3.tar.gz
troggle-220e1327d743b3b3c65b2d37aebdc063ca3c18a3.tar.bz2
troggle-220e1327d743b3b3c65b2d37aebdc063ca3c18a3.zip
validate author of trip on editing
Diffstat (limited to 'parsers/logbooks.py')
-rw-r--r--parsers/logbooks.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/parsers/logbooks.py b/parsers/logbooks.py
index ddc65f7..8737508 100644
--- a/parsers/logbooks.py
+++ b/parsers/logbooks.py
@@ -166,7 +166,8 @@ def GetTripPersons(trippeople, expedition, logtime_underground, tid=None):
message = f" ! - {expedition.year} No name match for: '{nickname_used}' in entry {tid=} for this year."
print(message)
DataIssue.objects.create(parser="logbooks", message=message)
- res.append((personyear, nickname_used, logtime_underground))
+ else:
+ res.append((personyear, nickname_used, logtime_underground))
except:
# This should not happen. We do not raise exceptions in that function
message = f" ! - {expedition.year} EXCEPTION: '{tripperson}' ({nickname_used}) in entry {tid=} for this year."
@@ -259,6 +260,8 @@ def store_entry_into_database(date, place, tripcave, title, text, trippersons, a
faster ?
"""
other_people = ", ".join(guests) # join list members separated by comma
+ if guests:
+ print(f" {date} - {guests}")
nonLookupAttribs = {
"place": place,