summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
Diffstat (limited to 'core')
-rw-r--r--core/models/caves.py7
-rw-r--r--core/views/caves.py1
2 files changed, 4 insertions, 4 deletions
diff --git a/core/models/caves.py b/core/models/caves.py
index cd8bb10..539006b 100644
--- a/core/models/caves.py
+++ b/core/models/caves.py
@@ -412,11 +412,10 @@ class Entrance(TroggleModel):
return ""
def latlong(self):
- """Gets lat long assuming that it has to get it from the associated stations, but in fact the Entrance itself
- has easting/northing and lat/long fields which perhaps we should try first... or last ?!
+ """Gets lat long assuming that it has to get it from the associated stations
"""
- if self.easting and self.northing:
- return utmToLatLng(33, float(self.easting), float(self.northing), northernHemisphere=True)
+ # if self.easting and self.northing: # hmm not a good idea I think
+ # return utmToLatLng(33, float(self.easting), float(self.northing), northernHemisphere=True)
station = None
if self.other_station:
diff --git a/core/views/caves.py b/core/views/caves.py
index 15f0fda..a6c9659 100644
--- a/core/views/caves.py
+++ b/core/views/caves.py
@@ -315,6 +315,7 @@ def cavepage(request, karea=None, subpath=None, slug=None):
message = f"Failed to find cave from identifier given: {slug}."
return render(request, "errors/generic.html", {"message": message})
+ # lack of validation for karea, it could be any 4 digits.
kpath = karea + subpath
# print(f" ! cavepage:'{kpath}' kataster area:'{karea}' rest of path:'{subpath}'")
try: