2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-16 23:57:11 +00:00

encryption round-trip works

This commit is contained in:
2025-01-20 02:07:26 +00:00
parent 79cf342d33
commit 4d49eefccb
9 changed files with 186 additions and 6 deletions

View File

@@ -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,