From 60fd1b8c7b99e4dd2370f4315e2443526b42fc35 Mon Sep 17 00:00:00 2001 From: bruntib Date: Wed, 21 Aug 2024 11:02:47 +0200 Subject: [PATCH] [fix] fix compare_results.py sciprt The list.sort() function doesn't return a sorted list but sorts inplace. --- scripts/result_listing/compare_results.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/result_listing/compare_results.py b/scripts/result_listing/compare_results.py index 6371746dd5..87af114491 100644 --- a/scripts/result_listing/compare_results.py +++ b/scripts/result_listing/compare_results.py @@ -11,8 +11,10 @@ import sys def __sorted_results(result_file): - return json.load(result_file).sort( + results = json.load(result_file) + results.sort( key=lambda report: report['bugHash'] + str(report['reportId'])) + return results def __print_missing(needles, haystack, haystack_name): for needle in needles: