summaryrefslogtreecommitdiffstats
path: root/core/views/caves.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/views/caves.py')
-rw-r--r--core/views/caves.py11
1 files changed, 0 insertions, 11 deletions
diff --git a/core/views/caves.py b/core/views/caves.py
index 960d373..acd75a6 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -303,7 +303,6 @@ def edit_cave(request, path = "", slug=None):
The format for the file being saved is in templates/dataformat/cave.xml
It does save the data into into the database directly, not by parsing the file.
- It does NOT yet commit to the git repo
'''
message = ""
if slug is not None:
@@ -525,13 +524,3 @@ def qm(request,cave_id,qm_id,year,grade=None, blockname=None):
return render(request,'errors/badslug.html', {'badslug': f'QM.DoesNotExist blockname is not empty string {cave_id=} {year=} {qm_id=} {grade=} {blockname=}'})
-# def get_qms(request, caveslug):
- # '''Does not crash, but just returns a text list of the entrances for a cave.
- # Used internally by the JSON export code? Archeology required..
- # cf get_entrances() above
- # '''
- # try:
- # cave = Cave.objects.get(caveslug__slug = caveslug)
- # except:
- # return render(request,'errors/badslug.html', {'badslug': caveslug})
- # return render(request,'options.html', {"items": [(q.slug(), q.slug()) for q in cave.QMs()]})