summaryrefslogtreecommitdiffstats
path: root/core/views_survex.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@klebos.com>2020-05-28 01:16:45 +0100
committerPhilip Sargent <philip.sargent@klebos.com>2020-05-28 01:16:45 +0100
commit6cc578435c4939e45f164e7481433da8a1f694f0 (patch)
treed0fea26994841703a27ec6ca7dda179ba3523abb /core/views_survex.py
parent73637ba53d957b19e05eb16e5636d20374353dfe (diff)
downloadtroggle-6cc578435c4939e45f164e7481433da8a1f694f0.tar.gz
troggle-6cc578435c4939e45f164e7481433da8a1f694f0.tar.bz2
troggle-6cc578435c4939e45f164e7481433da8a1f694f0.zip
Refactor to avoid loading unused surveystations
Diffstat (limited to 'core/views_survex.py')
-rw-r--r--core/views_survex.py21
1 files changed, 5 insertions, 16 deletions
diff --git a/core/views_survex.py b/core/views_survex.py
index 7595ea9..0435d52 100644
--- a/core/views_survex.py
+++ b/core/views_survex.py
@@ -23,13 +23,13 @@ survextemplatefile = """; Locn: Totes Gebirge, Austria - Loser/Augst-Eck Plateau
*export [connecting stations]
*title "area title"
-*date 2999.99.99
+*date 2099.99.99
*team Insts [Caver]
*team Insts [Caver]
*team Notes [Caver]
*instrument [set number]
-;ref.: 2009#NN
+*ref: 2099#NN
*calibrate tape +0.0 ; +ve if tape was too short, -ve if too long
@@ -39,9 +39,8 @@ survextemplatefile = """; Locn: Totes Gebirge, Austria - Loser/Augst-Eck Plateau
*data passage station left right up down ignoreall
1 [L] [R] [U] [D] comment
-*end [surveyname]"""
-
-
+*end [surveyname]"""
+
def ReplaceTabs(stext):
res = [ ]
nsl = 0
@@ -252,8 +251,7 @@ def identifycavedircontents(gcavedir):
if primesvx:
subsvx.insert(0, primesvx)
return subdirs, subsvx
-
-
+
# direct local non-database browsing through the svx file repositories
# perhaps should use the database and have a reload button for it
@@ -305,10 +303,6 @@ def survexcaveslist(request):
onefilecaves.append(survdirobj[0])
return render_to_response('svxfilecavelist.html', {'settings': settings, "onefilecaves":onefilecaves, "multifilecaves":multifilecaves, "subdircaves":subdircaves })
-
-
-
-
# parsing all the survex files of a single cave and showing that it's consistent and can find all the files and people
@@ -319,8 +313,3 @@ def survexcavesingle(request, survex_cave):
if breload:
parsers.survex.ReloadSurvexCave(survex_cave)
return render_to_response('svxcavesingle.html', {'settings': settings, "cave":cave })
-
-
-
-
-