summaryrefslogtreecommitdiffstats
path: root/core/models/caves.py
diff options
context:
space:
mode:
authorPhilip Sargent <philip.sargent@gmail.com>2023-10-11 01:03:28 +0300
committerPhilip Sargent <philip.sargent@gmail.com>2023-10-11 01:03:28 +0300
commitd6a30064449bfdc089f92f0e3101158c08974a6f (patch)
tree18dae2e04667ec3488c8f1326919367cf54744f1 /core/models/caves.py
parent973f9bedd5cf260ae224bd0d7ba7a888cd85c579 (diff)
downloadtroggle-d6a30064449bfdc089f92f0e3101158c08974a6f.tar.gz
troggle-d6a30064449bfdc089f92f0e3101158c08974a6f.tar.bz2
troggle-d6a30064449bfdc089f92f0e3101158c08974a6f.zip
x/y distances between explicit data and survey points
Diffstat (limited to 'core/models/caves.py')
-rw-r--r--core/models/caves.py6
1 files changed, 4 insertions, 2 deletions
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):