diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2024-07-16 18:13:07 +0200 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2024-07-16 18:13:07 +0200 |
commit | a6ca40becd1dd655c358e41970ea65360b9191dd (patch) | |
tree | 3750f35e545bf304259036ec1fcd718b8e3fb581 | |
parent | 5b23b2df8adab5778b9aa1b4ce56380d9cfe43de (diff) | |
download | troggle-a6ca40becd1dd655c358e41970ea65360b9191dd.tar.gz troggle-a6ca40becd1dd655c358e41970ea65360b9191dd.tar.bz2 troggle-a6ca40becd1dd655c358e41970ea65360b9191dd.zip |
fix bug
-rw-r--r-- | core/views/caves.py | 2 |
1 files changed, 1 insertions, 1 deletions
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: |