summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--parsers/caves.py12
1 files changed, 9 insertions, 3 deletions
diff --git a/parsers/caves.py b/parsers/caves.py
index 917bf53..634434c 100644
--- a/parsers/caves.py
+++ b/parsers/caves.py
@@ -427,7 +427,7 @@ def readcaves():
'''Reads the xml-format HTML files in the EXPOWEB repo, not from the loser repo.
'''
# For those caves which do not have cave_data/1623-xxx.html XML files even though they exist and have surveys
- # should put this in a simple list which can be edited using 'Edit this file'
+ # should put this in a simple list
pending = set()
fpending = Path(CAVEDESCRIPTIONS, "pendingcaves.txt")
if fpending.is_file():
@@ -494,9 +494,15 @@ def readcaves():
for k in pending:
+ if k[0:3] == "162":
+ areanum = k[0:4]
+ url = f'{areanum}/{k[5:]}' # Note we are not appending the .htm as we are modern folks now.
+ else:
+ areanum = "1623"
+ url = f'1623/{k}'
+
+
area = area_1623
- areanum = k[0:4]
- url = areanum + "/" + k[5:] # Note we are not appending the .htm as we are modern folks now.
if areanum == "1623":
area = area_1623
if areanum == "1624":