2
0
mirror of https://expo.survex.com/repositories/troggle/.git synced 2026-02-14 04:57:10 +00:00

Black triangles on cave index

This commit is contained in:
2023-10-07 19:41:25 +03:00
parent 5f67af35f0
commit 7c0187c75b
3 changed files with 31 additions and 9 deletions

View File

@@ -156,8 +156,14 @@ class Cave(TroggleModel):
def no_location(self):
no_data = True
for e in CaveAndEntrance.objects.filter(cave=self):
if e.entrance.best_station:
no_data = False
if e.entrance.best_station() and e.entrance.best_station() != "":
#print(self, e, e.entrance.best_station())
if e.entrance.best_station_object().x:
no_data = False
# if no_data:
# print(self, "location", no_data)
# else:
# print(self, "NO LOCATION", no_data)
return no_data
def singleentrance(self):