From 037a50cf4729b6825311576d9d442ce28a3fc837 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sun, 17 Jul 2022 15:28:20 +0300 Subject: [PATCH] read 1623/264 as 1623-264 etc --- core/views/uploads.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/core/views/uploads.py b/core/views/uploads.py index b59ee01..3e589a8 100644 --- a/core/views/uploads.py +++ b/core/views/uploads.py @@ -164,7 +164,9 @@ def get_complaints(complaints, waldata, svxfiles, files): # FInd the cave, if it exists if waldata["cave"]: try: - caveobject = getCave(waldata["cave"]) + caveid = waldata["cave"] + caveid = caveid.replace("/","-") + caveobject = getCave(caveid) print(f'getCave for id "{waldata["cave"]}" {caveobject}') 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.')