From c0e4bee26b84c7f8f968c83284700cdf8ff0512f Mon Sep 17 00:00:00 2001 From: Philip Sargent Date: Wed, 18 Oct 2023 00:42:50 +0300 Subject: [PATCH] still trying to find why 78d is duplicated --- core/models/caves.py | 5 +---- parsers/locations.py | 4 +--- 2 files changed, 2 insertions(+), 7 deletions(-) diff --git a/core/models/caves.py b/core/models/caves.py index 628679ad0..2d3e454bb 100644 --- a/core/models/caves.py +++ b/core/models/caves.py @@ -416,10 +416,7 @@ class Entrance(TroggleModel): def latlong(self): """Gets lat long assuming that it has to get it from the associated stations - """ - # 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: try: diff --git a/parsers/locations.py b/parsers/locations.py index 4745bc620..bdb2fffb8 100644 --- a/parsers/locations.py +++ b/parsers/locations.py @@ -259,13 +259,11 @@ def LoadPositions(): mappoints = {} found_points = {} pts = MapLocations().points() - i=0 for pt in pts: svxid, number, point_type, ent = pt - i += 1 #((st, str(ent), ent.needs_surface_work(), ent)) if svxid in mappoints: - print(f" = seen this svxid {svxid} for {ent} already on {mappoints[svxid]} item {i}") + print(f" = seen this svxid {svxid} for {ent} already on entrance {mappoints[svxid]}") else: mappoints[svxid] = ent if svxid =="1":