diff options
author | Philip Sargent <philip.sargent@klebos.com> | 2022-10-11 21:01:02 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@klebos.com> | 2022-10-11 21:01:02 +0300 |
commit | 39683cc4135db7ad3709b988f6a5b8972b82d8d0 (patch) | |
tree | 711900f9c23f1b3913e00ae0f6d7a65d676b79c6 /core | |
parent | 47e2c6e21470b101ead037dbfd7f9353ff26f9d1 (diff) | |
download | troggle-39683cc4135db7ad3709b988f6a5b8972b82d8d0.tar.gz troggle-39683cc4135db7ad3709b988f6a5b8972b82d8d0.tar.bz2 troggle-39683cc4135db7ad3709b988f6a5b8972b82d8d0.zip |
TIdy and docum of cave entry code
Diffstat (limited to 'core')
-rw-r--r-- | core/views/caves.py | 11 | ||||
-rw-r--r-- | core/views/survex.py | 2 |
2 files changed, 1 insertions, 12 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()]}) diff --git a/core/views/survex.py b/core/views/survex.py index dc225bd..b6548b6 100644 --- a/core/views/survex.py +++ b/core/views/survex.py @@ -459,7 +459,7 @@ def survexcaveslist(request): def survexcavesingle(request, survex_cave): '''parsing all the survex files of a single cave and showing that it's consistent and can find all - the files and people. Should explicity fix the kataster number thing. + the files and people. Should explicitly fix the kataster number thing. kataster numbers are not unique across areas. This used to be a db constraint but we need to manage this ourselves as we don't want the parser aborting with an error message. |