From f14bd984f88ae4274fbecc690a4a0f0a45210e69 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 25 Oct 2023 22:35:51 +0300 Subject: [PATCH] extract more into ARGE pending cave pages --- parsers/caves.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/parsers/caves.py b/parsers/caves.py index b7b6c4c..d2a8306 100644 --- a/parsers/caves.py +++ b/parsers/caves.py @@ -216,11 +216,17 @@ def do_ARGE_cave(slug, caveid, areacode, svxid): line1 = s.readline() line2 = s.readline() line3 = s.readline() + rest = s.readlines() else: print(f"not correct svxid {svxid} {sv}", file=sys.stderr) - + + print(f"{caveid} {rest}") + passages = "\n" + for line in rest: + if line.strip().startswith("*begin"): + passages = f"{passages}{line}" cave = Cave( - underground_description="ARGE cave.
3 lines of the survexfile:
" + line1 +line2 +line3 +"
", + underground_description="ARGE cave.
3 lines of the survexfile, then all the *begin lines:
" + line1 +line2 +line3 +passages +"
", unofficial_number="ARGE", survex_file= f"{svxid}.svx", url=url,