mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 04:47:03 +00:00
downgrade error to warning
This commit is contained in:
@@ -1207,7 +1207,7 @@ class LoadingSurvex:
|
|||||||
kataster
|
kataster
|
||||||
fixedpts/gps
|
fixedpts/gps
|
||||||
and everything at top level, directly in caves-1623/ not in a subdir
|
and everything at top level, directly in caves-1623/ not in a subdir
|
||||||
NOTE self.cavelist is a superset of GCaveLookup, which already contians both uppercase and lowercase aliases
|
NOTE self.cavelist is a superset of GCaveLookup, which already contains both uppercase and lowercase aliases
|
||||||
|
|
||||||
why is this called with cavepath="caves-1623/2023-kt-02" when this is a cave where the files are in "caves-1623/2023-kt-02/"
|
why is this called with cavepath="caves-1623/2023-kt-02" when this is a cave where the files are in "caves-1623/2023-kt-02/"
|
||||||
cavepath = 'surface/1623' when svxis is 'surface/1623/2004-18to298.svx'
|
cavepath = 'surface/1623' when svxis is 'surface/1623/2004-18to298.svx'
|
||||||
@@ -1262,12 +1262,11 @@ class LoadingSurvex:
|
|||||||
# stash_data_issue(parser="survex", message=message, url=None, sb=(svxid))
|
# stash_data_issue(parser="survex", message=message, url=None, sb=(svxid))
|
||||||
# print(message, file=sys.stderr)
|
# print(message, file=sys.stderr)
|
||||||
return False
|
return False
|
||||||
else:
|
else: # probably a top level file immediately in the loser directory. No worries.
|
||||||
message = f" ! ERROR: no cave at '{svxid}.svx' {cavepath=} "
|
message = f" ! Warning: no cave identifiable for '{svxid}.svx' {cavepath=} "
|
||||||
print("\n" + message)
|
print("\n" + message)
|
||||||
print("\n" + message, file=sys.stderr)
|
|
||||||
stash_data_issue(parser="survex", message=message, url="{svxid}.svx", sb=(svxid))
|
stash_data_issue(parser="survex", message=message, url="{svxid}.svx", sb=(svxid))
|
||||||
return None
|
return False
|
||||||
|
|
||||||
def LoadSurvexFile(self, svxid):
|
def LoadSurvexFile(self, svxid):
|
||||||
"""Creates SurvexFile in the database, and SurvexDirectory if needed
|
"""Creates SurvexFile in the database, and SurvexDirectory if needed
|
||||||
|
|||||||
@@ -42,6 +42,7 @@ traced to produce Tunnel or Therion drawings and eventually the final complete c
|
|||||||
<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}
|
<a href="/person/{{p.slug}}">{{p.fullname}}</a>{%if not forloop.last %}, {% endif %}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
</td>
|
</td>
|
||||||
|
<td align="center" style="padding:2px"><a href="{{wallet.get_absolute_url}}">{{wallet.singlescan_set.all|length}}</a></td>
|
||||||
<td style="padding:2px">
|
<td style="padding:2px">
|
||||||
{% for survexblock in wallet.survexblock_set.all %}
|
{% for survexblock in wallet.survexblock_set.all %}
|
||||||
<a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a>
|
<a href="{% url "svx" survexblock.survexfile.path %}">{{survexblock}}</a>
|
||||||
|
|||||||
Reference in New Issue
Block a user