forked from expo/troggle
Date and People checks
This commit is contained in:
parent
037a50cf47
commit
6efbec7750
@ -85,7 +85,6 @@ xlate = {"url": "description url",
|
|||||||
"people": "people",
|
"people": "people",
|
||||||
"date": "date",
|
"date": "date",
|
||||||
"cave": "cave",
|
"cave": "cave",
|
||||||
"people": "people",
|
|
||||||
"plannr": "plan not required",
|
"plannr": "plan not required",
|
||||||
"survexnr": "survex not required",
|
"survexnr": "survex not required",
|
||||||
"qmsw": "qms written",
|
"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
|
'''Taken from old script wallets.py and edited to make more comprehensible
|
||||||
Loads the survex files names and processes all complaints
|
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 = ""
|
survex_complaint = ""
|
||||||
|
|
||||||
if waldata["survex file"]:
|
if waldata["survex file"]:
|
||||||
@ -156,7 +163,6 @@ def get_complaints(complaints, waldata, svxfiles, files):
|
|||||||
if not waldata["qms written"]:
|
if not waldata["qms written"]:
|
||||||
complaints.append("The QMs needs writing into the survex file. Tick the 'QMs written' checkbox when this is done.")
|
complaints.append("The QMs needs writing into the survex file. Tick the 'QMs written' checkbox when this is done.")
|
||||||
|
|
||||||
|
|
||||||
# Website
|
# Website
|
||||||
if not waldata["website updated"]:
|
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.")
|
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.")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user