mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-19 09:27:08 +00:00
stop verbose warnings, change colour on cave names
This commit is contained in:
@@ -1654,15 +1654,14 @@ class LoadingSurvex:
|
||||
|
||||
This _should_ also check that the first QM survey point exists in the block in this survex file.
|
||||
"""
|
||||
message = f' ! QM "{survexblock.survexfile.path}" line:{comment} {qml=}'
|
||||
print(message, file=sys.stderr)
|
||||
qml = self.rx_qm_digit.match(comment) # checks for valid QM digit(s)
|
||||
if not qml:
|
||||
message = f' ! QM Unrecognised QM number in "{survexblock.survexfile.path}" line:{comment}'
|
||||
print(message)
|
||||
stash_data_issue(
|
||||
parser="survex", message=message, url=None, sb=(survexblock.survexfile.path)
|
||||
)
|
||||
if not comment.startswith("QM doesn't go anywhere"):
|
||||
message = f' ! QM Unrecognised QM number in "{survexblock.survexfile.path}" line:{comment}'
|
||||
print(message)
|
||||
stash_data_issue(
|
||||
parser="survex", message=message, url=None, sb=(survexblock.survexfile.path)
|
||||
)
|
||||
return False
|
||||
qmline = self.rx_qm.match(comment)
|
||||
if qmline:
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
Red star <span style="color: red">*</span> against a name indicates that no survex file is explicitly associated with the cave<br />
|
||||
Blue star <span style="color: blue">*</span> against a name indicates that no survex file is explicitly associated with the cave but it is marked as 'fully explored'<br />
|
||||
Red star <span style="color: red">✱</span> against a name indicates that no survex file is explicitly associated with the cave<br />
|
||||
Blue star <span style="color: blue">✱</span> against a name indicates that no survex file is explicitly associated with the cave but it is marked as 'fully explored'<br />
|
||||
Blue triangle <span style="color: #43C6DB">▼</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 />
|
||||
Black triangle <span style="color: black">▲</span> against a name indicates that the cave has an Entrance, but no entrances have valid located survey stations.<br />
|
||||
Red triangle <span style="color: red">▼</span> against a name indicates that the cave has unticked QMs<br />
|
||||
<span style="color:red">Cavename in red</span> means that the cave is undescended/unexplored.
|
||||
<span style="color:mediumvioletred">Cavename in this colour</span> means that the cave is undescended/unexplored.
|
||||
@@ -1,6 +1,6 @@
|
||||
<a href="/{{ cave.url }}">
|
||||
{% if cave.unexplored %}
|
||||
<span style="color:red" title="The cave is marked as unexplored/undescended">
|
||||
<span style="color:mediumvioletred" title="The cave is marked as unexplored/undescended">
|
||||
{% else %}
|
||||
<span>
|
||||
{% endif %}
|
||||
@@ -21,9 +21,9 @@
|
||||
{% endif %}
|
||||
{% if cave.survex_file %}{% else %}
|
||||
{% if cave.fully_explored %}
|
||||
<span title="no survex file is explicitly associated with the cave but it is fully explored" style="color: blue">*</span>
|
||||
<span title="no survex file is explicitly associated with the cave but it is fully explored" style="color: blue">✱</span>
|
||||
{% else %}
|
||||
<span title="no survex file is explicitly associated with the cave" style="color: red">*</span>
|
||||
<span title="no survex file is explicitly associated with the cave" style="color: red">✱</span>
|
||||
{% endif %}
|
||||
{% endif %}
|
||||
{% if cave.any_qm_open %}<span title="the cave has open QMs" style="color: red">▼</span>{% endif %}
|
||||
|
||||
Reference in New Issue
Block a user