From a6ca40becd1dd655c358e41970ea65360b9191dd Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Tue, 16 Jul 2024 18:13:07 +0200 Subject: [PATCH] fix bug --- core/views/caves.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/views/caves.py b/core/views/caves.py index 795bb18..6bbf627 100644 --- a/core/views/caves.py +++ b/core/views/caves.py @@ -784,7 +784,7 @@ def caveQMs(request, slug, open=False): relies on the template to find all the QMs for the cave specified in the slug, e.g. '1623-161' Now working in July 2022 """ - if not (cave:= get_cave_from_slug(caveslug)): # walrus operator + if not (cave:= get_cave_from_slug(slug)): # walrus operator return render(request, "errors/badslug.html", {"badslug": f"{slug} - from caveQMs()"}) if cave.non_public and settings.PUBLIC_SITE and not request.user.is_authenticated: