From 65c3cb31d762bf7289b948525fef78f4f12e21d2 Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 25 Mar 2021 20:23:25 +0000 Subject: improved display of survex files for a cave --- core/views_survex.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'core/views_survex.py') 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) -- cgit v1.2.3