summaryrefslogtreecommitdiffstats
path: root/parsers/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2025-01-20 02:07:26 +0000
committerPhilip Sargent <philip.sargent@gmail.com>2025-01-20 02:07:26 +0000
commit4d49eefccbac393ca21b81bc35f7a632b4af1178 (patch)
treee372c3edc1df51449f6222ae0065be72bbe9e145 /parsers/caves.py
parent79cf342d3391d4bbd127678faaeed5471f6954be (diff)
downloadtroggle-4d49eefccbac393ca21b81bc35f7a632b4af1178.tar.gz
troggle-4d49eefccbac393ca21b81bc35f7a632b4af1178.tar.bz2
troggle-4d49eefccbac393ca21b81bc35f7a632b4af1178.zip
encryption round-trip works
Diffstat (limited to 'parsers/caves.py')
-rw-r--r--parsers/caves.py13
1 files changed, 10 insertions, 3 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index 67330fc..25b1743 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -181,7 +181,8 @@ 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 or VfHO 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."
+ default_note += "<br />If there is a 'Messteam' or 'Zeichner' listed, then it is probably ARGE."
url = f"{areacode}/{caveid}/{caveid}.html"
urltest = Cave.objects.filter(url=url)
@@ -210,11 +211,17 @@ def do_ARGE_cave(slug, caveid, areacode, svxid):
print(f"{caveid} {rest}")
passages = "\n"
+ # ; Messteam: Uwe Kirsamer, Uli Nohlen, Aiko Schütz, Torben Schulz,Thomas Holder,Robert Winkler
+ # ; Zeichner: Aiko Schütz, Robert Winkler
for line in rest:
if line.strip().startswith("*begin"):
- passages = f"{passages}{line}"
+ passages = f"{passages}{line}<br />\n"
+ if line.strip().startswith("; Messteam:") or line.strip().startswith("; Zeichner:"):
+ passages = f"{passages}{line}<br />\n"
+
+ commentary= "ARGE or VfHO cave.<br />3 lines of the survexfile,<br /> then all the *begin lines and any '; Messteam' and '; Zeichner' lines:<br><pre>"
cave = Cave(
- underground_description="ARGE or VfHO cave.<br>3 lines of the survexfile, then all the *begin lines:<br><pre>" + line1 +line2 +line3 +passages +"</pre>",
+ underground_description=commentary + line1 +line2 +line3 +passages +"</pre>",
unofficial_number="ARGE-or-VfHO",
survex_file= f"{svxid}.svx",
url=url,