remove non-kataster caves list

This commit is contained in:
2025-12-16 12:35:19 +00:00
parent eefbdb59bb
commit 0866321ddc
3 changed files with 6 additions and 3 deletions

View File

@@ -754,6 +754,10 @@ def survexcavesingle(request, cave_shortname):
the files and people.
But might also be a link to a single survex file with no ".svx" suffix, which may not be a cave.
If cave_shortname=="" then it used to list all caves which did not have a kataser number,
an accident of coding. This now does not happen.
"""
if cave_shortname.startswith("caves-16"):
return svx(request, cave_shortname)

View File

@@ -25,8 +25,7 @@
<a href="/logbookedit/">Logbook Entry</a> |
<a id="cavesLink" href="/caves_recent">Caves</a> |
<a id="qmsLink" href="{% url "caveQMs" "1623-290" %}">QMs</a> |
<a href="/survexfile">Survex</a> |
<a href="{% url "survexcaveslist" %}">All Survex</a> |
<a href="{% url "survexcaveslist" %}">Survex files</a> |
<a href="{% url "allscans" %}">Scans</a> |
<a href="{% url "walletedit" %}">Upload Scans</a> |
<a href="{% url "dwgallfiles" %}">Drawings</a> |

View File

@@ -296,7 +296,7 @@ trogglepatterns = [
# The survexfile pages
path('survexdir', survex.survexdir, name="survexdir"),
path('survexfile', survex.survexcavesingle, {'cave_shortname': ''}, name="survexcavessingle"),
# path('survexfile', survex.survexcavesingle, {'cave_shortname': ''}, name="survexcavessingle"),
path('survexfile/caves', survex.survexcaveslist, name="survexcaveslist"),
path('survexfile/<path:survex_file>.svx', survex.svx, name="svx"),