summaryrefslogtreecommitdiffstats
path: root/core/views
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-12 00:58:20 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-12 00:58:20 +0300
commitd3a7a9823a025f84921561882b3049765105d7fa (patch)
treebdb946fda56bcaba13ace17a35dd8bcbc5cd8020 /core/views
parent3b1fd56fe4b09ffc9203c3109fcd05ff440732ef (diff)
downloadtroggle-d3a7a9823a025f84921561882b3049765105d7fa.tar.gz
troggle-d3a7a9823a025f84921561882b3049765105d7fa.tar.bz2
troggle-d3a7a9823a025f84921561882b3049765105d7fa.zip
remove exact station
Diffstat (limited to 'core/views')
-rw-r--r--core/views/prospect.py6
-rw-r--r--core/views/statistics.py8
2 files changed, 4 insertions, 10 deletions
diff --git a/core/views/prospect.py b/core/views/prospect.py
index e9d3fde..561c6d3 100644
--- a/core/views/prospect.py
+++ b/core/views/prospect.py
@@ -265,10 +265,8 @@ def prospecting_image(request, name):
E, N = e.easting, e.northing
if e.tag_station:
st = e.tag_station
- elif e.exact_station:
- st = e.exact_station
- elif e.exact_station:
- st = e.exact_station
+ elif e.other_station:
+ st = e.other_station
else:
# print(f' No tag - {e.name} ')
continue
diff --git a/core/views/statistics.py b/core/views/statistics.py
index 7e29f5e..6ae1521 100644
--- a/core/views/statistics.py
+++ b/core/views/statistics.py
@@ -286,11 +286,7 @@ def eastings(request):
if ts:
e.tag_ts = SurvexStation.objects.get(name=ts)
#print(f"{e} {e.tag_ts} {e.tag_ts.lat()} {e.tag_ts.long()}")
-
- es = e.exact_station
- if es:
- e.tag_es = SurvexStation.objects.get(name=es)
- #print(f"{e} {e.tag_es} {e.tag_es.lat()} {e.tag_es.long()}")
+
os = e.other_station
if os:
@@ -305,7 +301,7 @@ def eastings(request):
entrances = Entrance.objects.all()
for e in entrances:
- if e.exact_station:
+ if e.other_station:
ents.add(e)
add_stations(e)
# if e.easting or e.northing: