2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-15 12:27:05 +00:00

fix comment

This commit is contained in:
2023-09-15 10:20:01 +02:00
parent 7ddf7fe373
commit 29879fdde2
2 changed files with 4 additions and 3 deletions

View File

@@ -119,7 +119,7 @@ def create_new_cave(svxpath, msg=None):
# double check
if a[0:3] == "162":
areacode = a[0:4]
url = f"{areacode}/{caveid}.html" # Note we are appending the .html as we are believe in backwards compatability.
url = f"{areacode}/{caveid}.html" # Note we are appending the .html as we are believe in backwards compatability. This is to fix Martin's new 2023 app.
else:
print(f"WARNING: parsers/caves/create_new_cave called with svxpath '{svxpath}'. Surely it should start 'caves-162*'? {msg}")
areacode = "1623"
@@ -228,7 +228,8 @@ def do_pending_cave(slug, caveid, url, areacode, msg=None):
def get_survex_file(k):
"""Guesses at and finds a survex file for this pending cave.
Convoluted. Needs rewriting
Convoluted. Needs rewriting.
Pointless if this cave is being created because we found a survex file...
"""
if k[0:3] == "162":
id = Path(k[5:])