From 68ad89b41c32cb21ad75b1f42893422d837d3999 Mon Sep 17 00:00:00 2001 From: 7h3Rabbit <62792609+7h3Rabbit@users.noreply.github.com> Date: Mon, 6 Jan 2025 15:38:18 +0100 Subject: [PATCH] output file should include same source as seen in review --- tests/lighthouse_base.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/lighthouse_base.py b/tests/lighthouse_base.py index 0ec5e0a5..02f33043 100644 --- a/tests/lighthouse_base.py +++ b/tests/lighthouse_base.py @@ -222,9 +222,6 @@ def create_rating_from_audits(category, global_translation, json_content, return weight_dict = create_weight_dict(category, json_content) reviews = [] for audit_key, item in json_content['audits'].items(): - if 'numericValue' in item: - return_dict[audit_key] = item['numericValue'] - if audit_key not in weight_dict: continue @@ -232,6 +229,8 @@ def create_rating_from_audits(category, global_translation, json_content, return review_item = create_rating_from_audit(item, category, global_translation, weight) if review_item is None: continue + + return_dict[audit_key] = item reviews.append(review_item) sorted_reviews = sorted(reviews,