mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-15 01:17:14 +00:00
validate author of trip on editing
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user