Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions siteupdate/python-teresco/siteupdate.py
Original file line numberDiff line numberDiff line change
Expand Up@@ -3208,9 +3208,12 @@ def run(self):

for w in r.point_list:
# duplicate labels
label_list = w.alt_labels.copy()
label_list.append(w.label)
for label in label_list:
lower_label = w.label.lower().strip("+*")
if lower_label in all_route_labels:
datacheckerrors.append(DatacheckEntry(r,[lower_label],"DUPLICATE_LABEL"))
else:
all_route_labels.add(lower_label)
for label in w.alt_labels:
lower_label = label.lower().strip("+*")
if lower_label in all_route_labels:
datacheckerrors.append(DatacheckEntry(r,[lower_label],"DUPLICATE_LABEL"))
Expand All@@ -3228,7 +3231,7 @@ def run(self):
for other_w in r.point_list:
if w == other_w:
break
if w.lat == other_w.lat and w.lng == other_w.lng and w.label != other_w.label:
if w.lat == other_w.lat and w.lng == other_w.lng:
labels = []
labels.append(other_w.label)
labels.append(w.label)
Expand Down