summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
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)