2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2024-11-25 16:51:54 +00:00

FIx pending caves which had got a bit garbled

This commit is contained in:
Philip Sargent 2022-09-25 21:43:00 +03:00
parent 829e18baef
commit 2f64e2d4c1

View File

@ -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:
area = area_1623
if k[0:3] == "162":
areanum = k[0:4]
url = areanum + "/" + k[5:] # Note we are not appending the .htm as we are modern folks now.
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
if areanum == "1623":
area = area_1623
if areanum == "1624":