diff options
author | Philip Sargent <philip.sargent@gmail.com> | 2023-10-07 19:41:25 +0300 |
---|---|---|
committer | Philip Sargent <philip.sargent@gmail.com> | 2023-10-07 19:41:25 +0300 |
commit | 7c0187c75bb1d9dce1a55acb3d3bda9e893704ad (patch) | |
tree | 89cf9e45829550250aeb3e4290b7c3bda59f5112 /core/models | |
parent | 5f67af35f019e7054b9ce6de521b3fc96f5b0dc3 (diff) | |
download | troggle-7c0187c75bb1d9dce1a55acb3d3bda9e893704ad.tar.gz troggle-7c0187c75bb1d9dce1a55acb3d3bda9e893704ad.tar.bz2 troggle-7c0187c75bb1d9dce1a55acb3d3bda9e893704ad.zip |
Black triangles on cave index
Diffstat (limited to 'core/models')
-rw-r--r-- | core/models/caves.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/core/models/caves.py b/core/models/caves.py index cac62a8..9d3472f 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -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): |