summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2021-03-25 20:23:25 +0000
committerPhilip Sargent <philip.sargent@klebos.com>2021-03-25 20:23:25 +0000
commit65c3cb31d762bf7289b948525fef78f4f12e21d2 (patch)
treec551c8ec0476c90074e157477afd8c4096f28472 /core
parent80874887cc78010dac35e0abb7a7cff25f37c909 (diff)
downloadtroggle-65c3cb31d762bf7289b948525fef78f4f12e21d2.tar.gz
troggle-65c3cb31d762bf7289b948525fef78f4f12e21d2.tar.bz2
troggle-65c3cb31d762bf7289b948525fef78f4f12e21d2.zip
improved display of survex files for a cave
Diffstat (limited to 'core')
-rw-r--r--core/views_survex.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/core/views_survex.py b/core/views_survex.py
index 89831e1..464b870 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -383,19 +383,15 @@ 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. Currently not showing Explorers or Titles. link test from SurvexFile page
- is "dates and explorers". Should explicity fix the kataster number thing.
+ the files and people. Should explicity fix the kataster number thing.
'''
sc = survex_cave
- breload = False
- if breload:
- parsers.survex.ReloadSurvexCave(sc) # does not exit now, needs re-writing to work.
try:
cave = Cave.objects.get(kataster_number=sc)
return render_to_response('svxcavesingle.html', {'settings': settings, "cave":cave })
except ObjectDoesNotExist:
# can get here if the survex file is in a directory labelled with unofficial number not kataster number.
- # maybe - and _ mixed up, or CUCC-2017- instead of 2017-CUCC-, or CUCC2015DL01 ??
+ # maybe - and _ mixed up, or CUCC-2017- instead of 2017-CUCC-, or CUCC2015DL01 . Let's not get carried away..
for unoff in [sc, sc.replace('-','_'), sc.replace('_','-')]:
try:
cave = Cave.objects.get(unofficial_number=unoff)