This commit is contained in:
sfigato 2022-09-18 23:29:49 +02:00
parent 00baa4a2f2
commit 8860db44b4
Signed by: blallo
GPG Key ID: 0CBE577C9B72DC3F

View File

@ -211,9 +211,9 @@ def parse_fr24(
]: # noqa: E501
try:
id_num = flight["flight"]["identification"]["number"]
if (_code := id_num.get("default")):
if _code := id_num.get("default"):
code = _code
elif (_code := id_num.get("alternative")):
elif _code := id_num.get("alternative"):
code = _code
else:
# skip if no flight code found