From e445da49b7eb88952a4382e14ba4f89adbaf4c97 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Wed, 5 Oct 2022 10:56:15 +0100 Subject: [PATCH] eddn-report: Ignore EDD outfitting/2 paintjobs --- scripts/eddn-report-log-errors | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/scripts/eddn-report-log-errors b/scripts/eddn-report-log-errors index 17ce548..2c21b24 100755 --- a/scripts/eddn-report-log-errors +++ b/scripts/eddn-report-log-errors @@ -76,20 +76,20 @@ def process_file(input_file: str) -> None: if matches.group('software_name') == 'EDDiscovery': # https://github.com/EDDiscovery/EDDiscovery/releases/latest if software_version >= semantic_version.Version.coerce('15.1.4.0'): - # if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/outfitting/2': - # err_msg = matches.group('err_msg') - # if ( - # err_msg.startswith('Failed Validation "[]') != -1 - # ): - # - # pass + if matches.group('schema_ref') == 'https://eddn.edcd.io/schemas/outfitting/2': + err_msg = matches.group('err_msg') + if ( + err_msg.startswith('Failed Validation "[]') != -1 + ): + + pass - # else: - # print(line) + else: + print(line) - # else: - print(line) + else: + print(line) elif matches.group('software_name') == 'EDDLite': # https://github.com/EDDiscovery/EDDLite/releases/latest