mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2025-12-17 14:47:08 +00:00
probably ARGE or VfHO
This commit is contained in:
@@ -171,6 +171,7 @@ def create_new_cave(svxpath, svxid=None, msg=None):
|
||||
|
||||
def do_ARGE_cave(slug, caveid, areacode, svxid):
|
||||
"""Only called by survex parser, NOT the cave parser.
|
||||
These are mostly VfHO, NOT ARGE !
|
||||
Creates a new Cave object, but with abbreviated data as the survex file (from ARGE) is all we have.
|
||||
We already know the survex file.
|
||||
We already know that the cave doesn't exist... though there are bugs..
|
||||
@@ -180,7 +181,7 @@ def do_ARGE_cave(slug, caveid, areacode, svxid):
|
||||
caveid may be kataster number or it may be e.g. LA34
|
||||
"""
|
||||
|
||||
default_note = "This is (probably) an ARGE cave where we only have the survex file and no other information"
|
||||
default_note = "This is (probably) an ARGE or VfHO cave where we only have the survex file and no other information"
|
||||
url = f"{areacode}/{caveid}/{caveid}.html"
|
||||
|
||||
urltest = Cave.objects.filter(url=url)
|
||||
@@ -213,8 +214,8 @@ def do_ARGE_cave(slug, caveid, areacode, svxid):
|
||||
if line.strip().startswith("*begin"):
|
||||
passages = f"{passages}{line}"
|
||||
cave = Cave(
|
||||
underground_description="ARGE cave.<br>3 lines of the survexfile, then all the *begin lines:<br><pre>" + line1 +line2 +line3 +passages +"</pre>",
|
||||
unofficial_number="ARGE",
|
||||
underground_description="ARGE or VfHO cave.<br>3 lines of the survexfile, then all the *begin lines:<br><pre>" + line1 +line2 +line3 +passages +"</pre>",
|
||||
unofficial_number="ARGE-or-VfHO",
|
||||
survex_file= f"{svxid}.svx",
|
||||
url=url,
|
||||
notes=default_note,
|
||||
@@ -231,7 +232,7 @@ def do_ARGE_cave(slug, caveid, areacode, svxid):
|
||||
cave.save()
|
||||
|
||||
else:
|
||||
message = f" ! {slug:11s} ARGE cave create failure {caveid=} {url=} {areacode=} {svxid=}"
|
||||
message = f" ! {slug:11s} ARGE or VfHO cave create failure {caveid=} {url=} {areacode=} {svxid=}"
|
||||
DataIssue.objects.create(parser="caves", message=message)
|
||||
print(message)
|
||||
return None
|
||||
|
||||
Reference in New Issue
Block a user