From d3a7a9823a025f84921561882b3049765105d7fa Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Thu, 12 Oct 2023 00:58:20 +0300 Subject: remove exact station --- core/views/statistics.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'core/views/statistics.py') 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: -- cgit v1.2.3