diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2025-01-17 23:01:27 +0000 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2025-01-17 23:01:27 +0000 |
commit | 551e849a0f57f0e4c7c063fe0caa260cfab54aae (patch) | |
tree | 5951011b33da91f35994da6abaf4c081378f11b5 /parsers/caves.py | |
parent | d903f883ebf48d31916d7f6320fefd9ec65a5c24 (diff) | |
download | troggle-551e849a0f57f0e4c7c063fe0caa260cfab54aae.tar.gz troggle-551e849a0f57f0e4c7c063fe0caa260cfab54aae.tar.bz2 troggle-551e849a0f57f0e4c7c063fe0caa260cfab54aae.zip |
probably ARGE or VfHO
Diffstat (limited to 'parsers/caves.py')
-rw-r--r-- | parsers/caves.py | 9 |
1 files changed, 5 insertions, 4 deletions
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.<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 |