Stop cleaning up comments, Spothole should be agnostic to that kind of thing.

This commit is contained in:
Ian Renton
2025-10-25 10:16:15 +01:00
parent 0ead59a985
commit 6eb1bd5ef1
2 changed files with 0 additions and 13 deletions

View File

@@ -111,11 +111,6 @@ class Alert:
if self.dx_calls and not self.dx_names:
self.dx_names = list(map(lambda c: lookup_helper.infer_name_from_callsign(c), self.dx_calls))
# Clean up comments
if self.comment:
comment = re.sub(r"\(de [A-Za-z0-9]*\)", "", self.comment)
self.comment = comment.strip()
# Always create an ID based on a hash of every parameter *except* received_time. This is used as the index
# to a map, which as a byproduct avoids us having multiple duplicate copies of the object that are identical
# apart from that they were retrieved from the API at different times. Note that the simple Python hash()