2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-22 07:11:52 +00:00

Date and People checks

This commit is contained in:
Philip Sargent 2022-07-17 15:41:05 +03:00
parent 037a50cf47
commit 6efbec7750

View File

@ -85,7 +85,6 @@ xlate = {"url": "description url",
"people": "people",
"date": "date",
"cave": "cave",
"people": "people",
"plannr": "plan not required",
"survexnr": "survex not required",
"qmsw": "qms written",
@ -102,6 +101,14 @@ def get_complaints(complaints, waldata, svxfiles, files):
'''Taken from old script wallets.py and edited to make more comprehensible
Loads the survex files names and processes all complaints
'''
# Date
if not waldata["date"]:
complaints.append("A date is mandatory. No data can be updated or edited unless you specify a date. Look in the survex file if there is one.")
# People
if waldata["people"]==["NOBODY"] or waldata["people"]==["Unknown"]:
complaints.append("Someody must have done this. Look in the survex file, or in the logbook entries for this date, for the people who created this data.")
survex_complaint = ""
if waldata["survex file"]:
@ -156,7 +163,6 @@ def get_complaints(complaints, waldata, svxfiles, files):
if not waldata["qms written"]:
complaints.append("The QMs needs writing into the survex file. Tick the 'QMs written' checkbox when this is done.")
# Website
if not waldata["website updated"]:
complaints.append("The cave description website is marked as needing updating using the guidebook description from the survex file. Tick the 'Website updated' checkbox when this is done.")