summaryrefslogtreecommitdiffstats
path: root/core/views/uploads.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/uploads.py')
-rw-r--r--core/views/uploads.py4
1 files changed, 3 insertions, 1 deletions
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.')