2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2025-12-19 11:37:13 +00:00

fixed bug looking for survex file with no .svx

This commit is contained in:
2025-08-02 19:01:08 +02:00
parent e70dfec759
commit ae88d279cb

View File

@@ -748,7 +748,11 @@ def get_primaries(cave):
def survexcavesingle(request, cave_shortname): def survexcavesingle(request, cave_shortname):
"""parsing all the survex files of a single cave and showing that it's consistent and can find all """parsing all the survex files of a single cave and showing that it's consistent and can find all
the files and people. 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() Gcavelookup = GetCaveLookup()
if cave_shortname in Gcavelookup: if cave_shortname in Gcavelookup: