style: format dashboard analytics fix
All checks were successful
CI/CD Pipeline / Code Quality Checks (push) Successful in 2m39s
CI/CD Pipeline / Run Tests (push) Successful in 2m43s
CI/CD Pipeline / Build and Push Dev Images (push) Successful in 31s
CI/CD Pipeline / Deploy Dev via Compose (push) Successful in 24s

This commit is contained in:
2026-06-16 00:09:19 +02:00
parent 94aa22ce35
commit af49962970
2 changed files with 4 additions and 4 deletions

View File

@@ -1177,7 +1177,9 @@ class DashboardAnalyticsService:
)
if executors_total:
return executors_total
return sum(1 for organization in organizations if organization.goz_participation)
return sum(
1 for organization in organizations if organization.goz_participation
)
@classmethod
def get_dashboard(

View File

@@ -575,9 +575,7 @@ class OrganizationAnalyticsApiTest(APITestCase):
self.assertEqual(
response.data["executors_by_cluster"][0]["cluster"], "roscosmos"
)
self.assertEqual(
response.data["executors_by_cluster"][0]["executors_count"], 1
)
self.assertEqual(response.data["executors_by_cluster"][0]["executors_count"], 1)
def test_dashboard_endpoint_uses_latest_available_f3_years_for_growth(self):
organization = OrganizationFactory.create(