Fixed a Python warning.

This commit is contained in:
Marat Fayzullin 2024-04-27 21:27:40 -04:00
parent 96cc085c3f
commit 1544419497
1 changed files with 3 additions and 3 deletions

View File

@ -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