fix: serve latest organization analytics data
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 2m53s
CI/CD Pipeline / Code Quality Checks (push) Successful in 3m12s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
Some checks failed
CI/CD Pipeline / Run Tests (push) Failing after 2m53s
CI/CD Pipeline / Code Quality Checks (push) Successful in 3m12s
CI/CD Pipeline / Build Docker Images (push) Has been skipped
CI/CD Pipeline / Push to Gitea Registry (push) Has been skipped
CI/CD Pipeline / Deploy to Server (push) Has been skipped
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
- frontend-facing serializers for organization catalog endpoints.
|
||||
"""
|
||||
|
||||
from apps.organization.availability import has_financial_reports, has_tax_reports
|
||||
from apps.organization.models import Organization
|
||||
from apps.organization.scope_utils import (
|
||||
SCOPE_LABELS,
|
||||
@@ -192,8 +193,8 @@ class OrganizationCatalogDetailSerializer(OrganizationCatalogBaseSerializer):
|
||||
@staticmethod
|
||||
def get_summary(obj: Organization) -> dict[str, object]:
|
||||
return {
|
||||
"financial_reports_available": obj.financial_reports_available,
|
||||
"tax_reports_available": obj.tax_reports_available,
|
||||
"financial_reports_available": has_financial_reports(obj),
|
||||
"tax_reports_available": has_tax_reports(obj),
|
||||
"active_registry_names": obj.get_active_registry_names(),
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user