diff --git a/latecomers/parse.py b/latecomers/parse.py index a0b14af..6020a81 100644 --- a/latecomers/parse.py +++ b/latecomers/parse.py @@ -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