From d6a30064449bfdc089f92f0e3101158c08974a6f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 11 Oct 2023 01:03:28 +0300 Subject: x/y distances between explicit data and survey points --- core/models/caves.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'core/models/caves.py') diff --git a/core/models/caves.py b/core/models/caves.py index 4827095..3079ed1 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -158,9 +158,11 @@ class Cave(TroggleModel): for e in CaveAndEntrance.objects.filter(cave=self): if e.entrance.best_station() and e.entrance.best_station() != "": #print(self, e, e.entrance.best_station()) - if e.entrance.best_station_object().x: - # print(f"{self} {e.entrance.best_station_object()} {e.entrance.best_station_object().x}") + try: + x = e.entrance.best_station_object().x no_data = False + except: + pass return no_data def singleentrance(self): -- cgit v1.2.3