From 31461531fce096c3823be071767d7a2baea53773 Mon Sep 17 00:00:00 2001
From: Philip Sargent
Date: Sun, 8 Oct 2023 00:06:12 +0300
Subject: [PATCH] add 1624 caves
---
core/views/caves.py | 8 +++++++-
templates/caveindex.html | 29 +++++++++++++++++++++++++++--
2 files changed, 34 insertions(+), 3 deletions(-)
diff --git a/core/views/caves.py b/core/views/caves.py
index 5f939dc..bd1de70 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -132,6 +132,7 @@ def caveindex(request):
pass
caves1623 = list(Cave.objects.filter(areacode="1623"))
+ caves1624 = list(Cave.objects.filter(areacode="1624"))
caves1626 = list(Cave.objects.filter(areacode="1626"))
caves1627 = list(Cave.objects.filter(areacode="1627"))
caves1623.sort(key=caveKey)
@@ -140,7 +141,12 @@ def caveindex(request):
return render(
request,
"caveindex.html",
- {"caves1623": caves1623, "caves1626": caves1626, "caves1627": caves1627, "notablecaves": getnotablecaves(), "cavepage": True},
+ {"caves1623": caves1623,
+ "caves1626": caves1626,
+ "caves1627": caves1627,
+ "caves1624": caves1624,
+ "notablecaves": getnotablecaves(),
+ "cavepage": True},
)
def entranceindex(request):
diff --git a/templates/caveindex.html b/templates/caveindex.html
index 4c2fb52..3b69886 100644
--- a/templates/caveindex.html
+++ b/templates/caveindex.html
@@ -84,6 +84,7 @@ Black triangle ▲ against a name indicat
Cave Number Index - kept updated
+
1627
@@ -98,8 +99,7 @@ Black triangle ▲ against a name indicat
{% endif %}
{% if cave.survex_file %}{% else %}*{% endif %}
-
- {% endfor %}
+ {% endfor %}
@@ -107,4 +107,29 @@ Black triangle ▲ against a name indicat
New Cave
Cave Number Index - kept updated
+
+1624
+
+
+ {% for cave in caves1624 %}
+ {% if cave.kataster_number %}{{ cave.kataster_number }} {{cave.official_name|safe}} {% if cave.unofficial_number %}({{cave.unofficial_number }}){% endif %}{% else %}{{cave.unofficial_number }} {{cave.official_name|safe}} {% endif %}
+ {% if cave.filename %}
+ {% if cave.no_location %}▲{% endif %}
+ {% if cave.entrances %}
+ {% else %}▲
+ {% endif %}
+ {% else %}▼
+ {% endif %}
+ {% if cave.survex_file %}{% else %}*{% endif %}
+ |
+
+ {% endfor %}
+
+
+
+
+
+ New Cave
+ Cave Number Index - kept updated
+
{% endblock %}