From ae88d279cb6dfe683694b8c721e813088eb16aea Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Sat, 2 Aug 2025 19:01:08 +0200 Subject: [PATCH] fixed bug looking for survex file with no .svx --- core/views/survex.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/core/views/survex.py b/core/views/survex.py index 80e46b5..327b58c 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -748,8 +748,12 @@ def get_primaries(cave): def survexcavesingle(request, cave_shortname): """parsing all the survex files of a single cave and showing that it's consistent and can find all the files and people. - """ + But might also be a link to a single survex file with no ".svx" suffix + """ + if cave_shortname.startswith("caves-16"): + return svx(request, cave_shortname) + Gcavelookup = GetCaveLookup() if cave_shortname in Gcavelookup: cave = Gcavelookup[cave_shortname]