fix: align ci with organization redesign
Some checks failed
CI/CD Pipeline / Quality Gate (push) Failing after 18s
CI/CD Pipeline / Build and Push Images (push) Has been skipped
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Has been skipped

This commit is contained in:
2026-06-07 16:43:30 +02:00
parent 802257a757
commit 71eac688f2
10 changed files with 82 additions and 754 deletions

View File

@@ -1905,9 +1905,7 @@ class FNSReportOrganizationResolutionSkipped(ValueError):
self.external_id = external_id
self.ogrn = ogrn
self.ingestion_result = ingestion_result
self.reason = (
"ambiguous" if ingestion_result.skipped_ambiguous else "unmatched"
)
self.reason = "ambiguous" if ingestion_result.skipped_ambiguous else "unmatched"
super().__init__(
"FNS report skipped because organization resolution is "
f"{self.reason}: external_id={external_id}, ogrn={ogrn}"

View File

@@ -1578,9 +1578,7 @@ def _native_record_to_result(
elif source == ParserLoadLog.Source.FNS_REPORTS:
registry_organization = record.registry_organization
external_id = record.external_id
organisation_name = (
registry_organization.name if registry_organization else ""
)
organisation_name = registry_organization.name if registry_organization else ""
title = record.file_name
record_date = ""
status_value = record.status