From 70bbf00949a5980294aa5177f2454b0cf87d94cd Mon Sep 17 00:00:00 2001 From: Antonio Golfari Date: Sun, 22 Sep 2024 23:10:50 +0200 Subject: [PATCH] fix case leading points are disabled --- airscore/core/flightcheck/flightcheck.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/airscore/core/flightcheck/flightcheck.py b/airscore/core/flightcheck/flightcheck.py index 99881384..b88e8890 100644 --- a/airscore/core/flightcheck/flightcheck.py +++ b/airscore/core/flightcheck/flightcheck.py @@ -355,7 +355,7 @@ def calculate_final_results( if tp.made_all: evaluate_goal(result, task) - else: + elif lead_coeff: '''save optimised best_dist_to_ESS for LC calculation''' result.best_dist_to_ESS = lead_coeff.best_dist_to_ess_m