summaryrefslogtreecommitdiffstats
path: root/core/views/statistics.py
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/statistics.py
parent3b1fd56fe4b09ffc9203c3109fcd05ff440732ef (diff)
downloadtroggle-d3a7a9823a025f84921561882b3049765105d7fa.tar.gz
troggle-d3a7a9823a025f84921561882b3049765105d7fa.tar.bz2
troggle-d3a7a9823a025f84921561882b3049765105d7fa.zip
remove exact station
Diffstat (limited to 'core/views/statistics.py')
-rw-r--r--core/views/statistics.py8
1 files changed, 2 insertions, 6 deletions
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: