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:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user