mirror of
https://expo.survex.com/repositories/troggle/.git
synced 2024-11-22 07:11:52 +00:00
FIx pending caves which had got a bit garbled
This commit is contained in:
parent
829e18baef
commit
2f64e2d4c1
@ -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":
|
||||
|
Loading…
Reference in New Issue
Block a user