mirror of
https://github.com/jketterl/openwebrx.git
synced 2026-01-19 23:20:31 +01:00
don't double up ACARS in the mode
This commit is contained in:
parent
95cc2eb620
commit
933f93ce1d
|
|
@ -86,8 +86,13 @@ class AcarsProcessor(JsonParser, metaclass=ABCMeta):
|
|||
else:
|
||||
source = FlightSource(flight_id)
|
||||
Map.getSharedInstance().updateLocation(
|
||||
source, AirplaneLocation(msg), "ACARS over {}".format(self.mode)
|
||||
source, AirplaneLocation(msg), self.getMode()
|
||||
)
|
||||
|
||||
def getMode(self):
|
||||
if self.mode == "ACARS":
|
||||
return self.mode
|
||||
return "ACARS over {}".format(self.mode)
|
||||
|
||||
def processFlight(self, raw):
|
||||
return self.flightRegex.sub(r"\g<1>\g<2>", raw)
|
||||
|
|
|
|||
Loading…
Reference in a new issue