mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-25 16:51:54 +00:00
Black triangles on cave index
This commit is contained in:
parent
5f67af35f0
commit
7c0187c75b
@ -156,8 +156,14 @@ class Cave(TroggleModel):
|
|||||||
def no_location(self):
|
def no_location(self):
|
||||||
no_data = True
|
no_data = True
|
||||||
for e in CaveAndEntrance.objects.filter(cave=self):
|
for e in CaveAndEntrance.objects.filter(cave=self):
|
||||||
if e.entrance.best_station:
|
if e.entrance.best_station() and e.entrance.best_station() != "":
|
||||||
no_data = False
|
#print(self, e, e.entrance.best_station())
|
||||||
|
if e.entrance.best_station_object().x:
|
||||||
|
no_data = False
|
||||||
|
# if no_data:
|
||||||
|
# print(self, "location", no_data)
|
||||||
|
# else:
|
||||||
|
# print(self, "NO LOCATION", no_data)
|
||||||
return no_data
|
return no_data
|
||||||
|
|
||||||
def singleentrance(self):
|
def singleentrance(self):
|
||||||
|
@ -29,7 +29,10 @@ todo = """
|
|||||||
|
|
||||||
class MapLocations(object):
|
class MapLocations(object):
|
||||||
"""Class used only for identifying the entrance locations
|
"""Class used only for identifying the entrance locations
|
||||||
Formerly used to put locations on a prospecting map"""
|
Formerly used to put locations on a prospecting map
|
||||||
|
|
||||||
|
We don't need these map locations any more ?!
|
||||||
|
They would only be used in addition to entrances going onto a map display"""
|
||||||
|
|
||||||
p = [
|
p = [
|
||||||
("laser.0_7", "BNase", "Reference", "Bräuning Nase laser point"),
|
("laser.0_7", "BNase", "Reference", "Bräuning Nase laser point"),
|
||||||
@ -108,7 +111,11 @@ def validate_entrance_stations(ent=None):
|
|||||||
if so.count() != 0:
|
if so.count() != 0:
|
||||||
message =f"{so.count()} found for Entrance {ent} '{ent_type}' station '{st}' {so}"
|
message =f"{so.count()} found for Entrance {ent} '{ent_type}' station '{st}' {so}"
|
||||||
else:
|
else:
|
||||||
message = f" ! - Entrance {ent} has invalid '{ent_type}' station '{st}'."
|
message = f" ! - Entrance {ent} has invalid '{ent_type}' station '{st}'"
|
||||||
|
if st == ent.best_station():
|
||||||
|
message = message + " - AND THIS IS THE 'BEST' ONE"
|
||||||
|
else:
|
||||||
|
message = message + " - not the 'best'"
|
||||||
stash_data_issue(parser="positions", message=message, url=url)
|
stash_data_issue(parser="positions", message=message, url=url)
|
||||||
print(message)
|
print(message)
|
||||||
bads +=1
|
bads +=1
|
||||||
|
@ -26,7 +26,7 @@
|
|||||||
Red star <span style="color: red">*</span> against a name indicates that no survex file is explicitly associated with the cave (but there might be a *fix somewhere)<br />
|
Red star <span style="color: red">*</span> against a name indicates that no survex file is explicitly associated with the cave (but there might be a *fix somewhere)<br />
|
||||||
Blue triangle <span style="color: blue">▼</span> against a name indicates that the cave is 'pending' creation properly.<br />
|
Blue triangle <span style="color: blue">▼</span> against a name indicates that the cave is 'pending' creation properly.<br />
|
||||||
Orange triangle <span style="color: orange">▲</span> against a name indicates that the cave has no Entrance (and is not 'pending').<br />
|
Orange triangle <span style="color: orange">▲</span> against a name indicates that the cave has no Entrance (and is not 'pending').<br />
|
||||||
<!-- Black triangle <span style="color: black">▼</span> against a name indicates that the cave has an Entrance, but no entrances have located survey stations.-->
|
Black triangle <span style="color: black">▲</span> against a name indicates that the cave has an Entrance, but no entrances have located survey stations.
|
||||||
|
|
||||||
<h3>1623</h3>
|
<h3>1623</h3>
|
||||||
<div style="column-count: 3;">
|
<div style="column-count: 3;">
|
||||||
@ -42,7 +42,10 @@ Orange triangle <span style="color: orange">▲</span> against a name indic
|
|||||||
{{cave.unofficial_number }} {{cave.official_name|safe}}</a>
|
{{cave.unofficial_number }} {{cave.official_name|safe}}</a>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if cave.filename %}
|
{% if cave.filename %}
|
||||||
{% if cave.entrances %}{% else %}<span style="color: orange">▲</span>{% endif %}
|
{% if cave.entrances %}
|
||||||
|
{% if cave.no_location %}<span style="color: black">▲</span>{% endif %}
|
||||||
|
{% else %}<span style="color: orange">▲</span>
|
||||||
|
{% endif %}
|
||||||
{% else %}<span style="color: blue">▼</span>
|
{% else %}<span style="color: blue">▼</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
|
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
|
||||||
@ -63,7 +66,10 @@ Orange triangle <span style="color: orange">▲</span> against a name indic
|
|||||||
{% for cave in caves1626 %}
|
{% for cave in caves1626 %}
|
||||||
<tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %}
|
<tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %}
|
||||||
{% if cave.filename %}
|
{% if cave.filename %}
|
||||||
{% if cave.entrances %}{% else %}<span style="color: orange">▲</span>{% endif %}
|
{% if cave.entrances %}
|
||||||
|
{% if cave.no_location %}<span style="color: black">▲</span>{% endif %}
|
||||||
|
{% else %}<span style="color: orange">▲</span>
|
||||||
|
{% endif %}
|
||||||
{% else %}<span style="color: blue">▼</span>
|
{% else %}<span style="color: blue">▼</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
|
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
|
||||||
@ -84,9 +90,12 @@ Orange triangle <span style="color: orange">▲</span> against a name indic
|
|||||||
{% for cave in caves1627 %}
|
{% for cave in caves1627 %}
|
||||||
<tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %}
|
<tr><td><a href="{{ cave.url }}">{% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}}</a> {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}}</a> {% endif %}
|
||||||
{% if cave.filename %}
|
{% if cave.filename %}
|
||||||
{% if cave.entrances %}{% else %}<span style="color: orange">▲</span>{% endif %}
|
{% if cave.no_location %}<span style="color: black">▲</span>{% endif %}
|
||||||
{% else %}<span style="color: blue">▼</span>
|
{% if cave.entrances %}
|
||||||
|
{% else %}<span style="color: orange">▲</span>
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
{% else %}<span style="color: blue">▼</span>
|
||||||
|
{% endif %}
|
||||||
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
|
{% if cave.survex_file %}{% else %}<span style="color: red">*</span>{% endif %}
|
||||||
</td></tr>
|
</td></tr>
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user