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,