mirror of
https://expo.survex.com/repositories/expoweb/.git/
synced 2025-12-08 23:04:35 +00:00
[svn r7407] Check "Underground centre line" field too when deciding if we have survey data.
This commit is contained in:
@@ -118,15 +118,17 @@ def is_underground_surveyed(cave):
|
||||
|
||||
def have_survey_data(cave):
|
||||
if(cave["Multiple entrances"] not in ["", "yes"]): return "<td></td>"
|
||||
s = chomp(cave["Underground centre line"])
|
||||
if s: return "<td class=\"good\">Yes</td>"
|
||||
s = chomp(cave["Survex file to get length and depth"])
|
||||
if s: return "<td class=\"good\">Yes</td>"
|
||||
s = chomp(cave["Underground drawn survey"])
|
||||
if s: return "<td class=\"bad\">Missing</td>"
|
||||
if cave["Kat Status Code"] and cave["Kat Status Code"][0] == '1':
|
||||
# Cave < 50m deep and < 50m long...
|
||||
# Sadly this band includes caves we really ought to have data for as
|
||||
# well as caves small enough that a grade 1 sketch is justifiable.
|
||||
return "<td class=\"bad\"><small>None, <50m</small></td>"
|
||||
return "<td class=\"bad\"><small><50m</small></td>"
|
||||
s = chomp(cave["Underground drawn survey"])
|
||||
if s: return "<td class=\"bad\">Missing</td>"
|
||||
return "<td class=\"awful\">None</td>"
|
||||
|
||||
def has_photo(cave):
|
||||
|
||||
Reference in New Issue
Block a user