Skip to content

Commit

Permalink
More invalid dates.
Browse files Browse the repository at this point in the history
  • Loading branch information
breyten committed Jun 26, 2024
1 parent 8a81852 commit 4219136
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion ocd_backend/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion ocd_backend/transformers/ibabs_report.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down

0 comments on commit 4219136

Please sign in to comment.