From a5c3b937b4adeba3c60185a00def1878f5c46522 Mon Sep 17 00:00:00 2001 From: Louis Dionne Date: Thu, 9 Oct 2025 17:52:28 -0400 Subject: [PATCH] [NFC] Simplify destructuring which is supported in recent Python versions --- lnt/server/reporting/analysis.py | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/lnt/server/reporting/analysis.py b/lnt/server/reporting/analysis.py index 28d1227f..74c9c2e9 100644 --- a/lnt/server/reporting/analysis.py +++ b/lnt/server/reporting/analysis.py @@ -405,11 +405,7 @@ def _load_samples_for_runs(self, session, run_ids, only_tests): if only_tests: q = q.filter(self.testsuite.Sample.test_id.in_(only_tests)) q = q.filter(self.testsuite.Sample.run_id.in_(to_load)) - for data in q: - run_id = data[0] - test_id = data[1] - profile_id = data[2] - sample_values = data[3:] + for (run_id, test_id, profile_id, *sample_values) in q: self.sample_map[(run_id, test_id)] = sample_values if profile_id is not None: self.profile_map[(run_id, test_id)] = profile_id