From 4d49eefccbac393ca21b81bc35f7a632b4af1178 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Mon, 20 Jan 2025 02:07:26 +0000 Subject: encryption round-trip works --- parsers/caves.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) (limited to 'parsers/caves.py') 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 += "
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}
\n" + if line.strip().startswith("; Messteam:") or line.strip().startswith("; Zeichner:"): + passages = f"{passages}{line}
\n" + + commentary= "ARGE or VfHO cave.
3 lines of the survexfile,
then all the *begin lines and any '; Messteam' and '; Zeichner' lines:
" 
     cave = Cave( 
-    underground_description="ARGE or VfHO cave.
3 lines of the survexfile, then all the *begin lines:
" + line1 +line2 +line3 +passages +"
", + underground_description=commentary + line1 +line2 +line3 +passages +"
", unofficial_number="ARGE-or-VfHO", survex_file= f"{svxid}.svx", url=url, -- cgit v1.2.3