Minor tweaks

This commit is contained in:
Ian Renton
2025-11-17 17:50:00 +00:00
parent 94c0cad769
commit 5724c4c7ea
2 changed files with 5 additions and 3 deletions

View File

@@ -388,7 +388,9 @@ class Spot:
def append_sig_ref_if_missing(self, new_sig_ref):
if not self.sig_refs:
self.sig_refs = []
if new_sig_ref.id.trim() == "":
return
for sig_ref in self.sig_refs:
if sig_ref.id.upper() == new_sig_ref.id.upper() and sig_ref.sig.upper() == new_sig_ref.sig.upper():
if sig_ref.id.trim().upper() == new_sig_ref.id.trim().upper() and sig_ref.sig.trim().upper() == new_sig_ref.sig.trim().upper():
return
self.sig_refs.append(new_sig_ref)
self.sig_refs.append(new_sig_ref.trim())