style: format backup service
All checks were successful
CI/CD Pipeline / Quality Gate (push) Successful in 19s
CI/CD Pipeline / Build and Push Images (push) Successful in 14s
CI/CD Pipeline / Internal Notify (push) Successful in 0s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 17s

This commit is contained in:
2026-06-09 12:46:36 +02:00
parent 7aa67fc192
commit 3abb8025bf

View File

@@ -185,8 +185,7 @@ class BackupExportService:
| Q(customer_ogrn__in=active_ogrns) | Q(customer_ogrn__in=active_ogrns)
) )
reports_qs = FinancialReport.objects.filter( reports_qs = FinancialReport.objects.filter(
Q(registry_organization_id__in=canonical_org_ids) Q(registry_organization_id__in=canonical_org_ids) | Q(ogrn__in=active_ogrns)
| Q(ogrn__in=active_ogrns)
) )
report_ids = list(reports_qs.values_list("id", flat=True)) report_ids = list(reports_qs.values_list("id", flat=True))