summaryrefslogtreecommitdiffstats
path: root/expo/views_caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'expo/views_caves.py')
-rw-r--r--expo/views_caves.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/expo/views_caves.py b/expo/views_caves.py
index 3363a2e..684f4b4 100644
--- a/expo/views_caves.py
+++ b/expo/views_caves.py
@@ -7,15 +7,10 @@ import search
def caveindex(request):
caves = Cave.objects.all()
- notablecavehrefs = [ "161", "204", "258", "76" ]
+ notablecavehrefs = [ "161", "204", "258", "76" ] # could detect notability by trips and notability of people who have been down them
notablecaves = [ Cave.objects.get(href=href) for href in notablecavehrefs ]
return render_to_response('caveindex.html', {'caves': caves, 'notablecaves':notablecaves, 'settings': settings})
-def cave(request, cave_id):
- #hm, we're only choosing by the number within kataster, needs to be fixed. Caves in 1626 will presumably not work. - AC 7DEC08
- cave = Cave.objects.filter(kataster_number = cave_id)[0]
- return render_to_response('cave.html', {'cave': cave, 'settings': settings})
-
def cavehref(request, href):
cave = Cave.objects.get(href=href)
return render_to_response('cave.html', {'cave': cave, 'settings': settings})