From 551e849a0f57f0e4c7c063fe0caa260cfab54aae Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Fri, 17 Jan 2025 23:01:27 +0000 Subject: probably ARGE or VfHO --- parsers/caves.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'parsers/caves.py') diff --git a/parsers/caves.py b/parsers/caves.py index 28e952f..67330fc 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -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.
3 lines of the survexfile, then all the *begin lines:
" + line1 +line2 +line3 +passages +"
", - unofficial_number="ARGE", + underground_description="ARGE or VfHO cave.
3 lines of the survexfile, then all the *begin lines:
" + line1 +line2 +line3 +passages +"
", + 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 -- cgit v1.2.3