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

read 1623/264 as 1623-264 etc

This commit is contained in:
Philip Sargent 2022-07-17 15:28:20 +03:00
parent bb65ffaee6
commit 037a50cf47

View File

@ -164,7 +164,9 @@ def get_complaints(complaints, waldata, svxfiles, files):
# FInd the cave, if it exists # FInd the cave, if it exists
if waldata["cave"]: if waldata["cave"]:
try: try:
caveobject = getCave(waldata["cave"]) caveid = waldata["cave"]
caveid = caveid.replace("/","-")
caveobject = getCave(caveid)
print(f'getCave for id "{waldata["cave"]}" {caveobject}') print(f'getCave for id "{waldata["cave"]}" {caveobject}')
if not caveobject.url == waldata["description url"]: if not caveobject.url == waldata["description url"]:
complaints.append(f'The URL of cave description \"{waldata["description url"]}\" does not match the one on record for this cave which is: "{caveobject.url}". If the wallet is not for a cave, put a useful URL here.') complaints.append(f'The URL of cave description \"{waldata["description url"]}\" does not match the one on record for this cave which is: "{caveobject.url}". If the wallet is not for a cave, put a useful URL here.')