From 1544419497a1500771fb2e9ea6cefecae4454385 Mon Sep 17 00:00:00 2001 From: Marat Fayzullin Date: Sat, 27 Apr 2024 21:27:40 -0400 Subject: [PATCH] Fixed a Python warning. --- owrx/aircraft.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/owrx/aircraft.py b/owrx/aircraft.py index 1cb7390e..c7922be5 100644 --- a/owrx/aircraft.py +++ b/owrx/aircraft.py @@ -178,11 +178,11 @@ class AircraftManager(object): # Add time-to-live pm = Config.get() mode = data["mode"] - if mode is "ACARS": + if mode == "ACARS": data["ttl"] = data["timestamp"] + pm["acars_ttl"] * 1000 - elif mode is "VDL2": + elif mode == "VDL2": data["ttl"] = data["timestamp"] + pm["vdl2_ttl"] * 1000 - elif mode is "HFDL": + elif mode == "HFDL": data["ttl"] = data["timestamp"] + pm["hfdl_ttl"] * 1000 else: # Assume ADSB time-to-live