From 42191362334b5b581e9b2e0bc8d447bb5b24bb9c Mon Sep 17 00:00:00 2001 From: Breyten Ernsting Date: Wed, 26 Jun 2024 15:15:54 +0200 Subject: [PATCH] More invalid dates. --- ocd_backend/settings.py | 3 ++- ocd_backend/transformers/ibabs_report.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ocd_backend/settings.py b/ocd_backend/settings.py index ccad7a67..f20d6e61 100644 --- a/ocd_backend/settings.py +++ b/ocd_backend/settings.py @@ -297,7 +297,8 @@ def process_log_record(self, log_record): IBABS_WSDL = 'https://wcf.ibabs.eu/api/Public.svc?singleWsdl' # iBabs invalid date types -IBABS_INVALID_REPORT_DATES = ['B', 'G', 'V', 'R', 'C', '1', 'I', 'T', 'M'] +IBABS_INVALID_REPORT_DATES = ['B', 'G', 'V', 'R', 'C', '1', 'I', 'T', 'M'] + # The endpoint for the CompanyWebcast API CWC_WSDL = 'https://services.companywebcast.com/meta/1.2/metaservice.svc?singleWsdl' diff --git a/ocd_backend/transformers/ibabs_report.py b/ocd_backend/transformers/ibabs_report.py index 994171e8..74959f67 100644 --- a/ocd_backend/transformers/ibabs_report.py +++ b/ocd_backend/transformers/ibabs_report.py @@ -104,7 +104,7 @@ def report_item(self, content_type, raw_item, canonical_iri, cached_path, **kwar attachment_file.size_in_bytes = document['FileSize'] attachment_file.name = document['DisplayName'] attachment_file.is_referenced_by = report - if datum and (datum not in ['R', 'B']): + if datum and (datum not in settings.IBABS_INVALID_REPORT_DATES): attachment_file.last_discussed_at = datum report.attachment.append(attachment_file)