style: format dashboard analytics fix
All checks were successful
All checks were successful
This commit is contained in:
@@ -1177,7 +1177,9 @@ class DashboardAnalyticsService:
|
|||||||
)
|
)
|
||||||
if executors_total:
|
if executors_total:
|
||||||
return 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
|
@classmethod
|
||||||
def get_dashboard(
|
def get_dashboard(
|
||||||
|
|||||||
@@ -575,9 +575,7 @@ class OrganizationAnalyticsApiTest(APITestCase):
|
|||||||
self.assertEqual(
|
self.assertEqual(
|
||||||
response.data["executors_by_cluster"][0]["cluster"], "roscosmos"
|
response.data["executors_by_cluster"][0]["cluster"], "roscosmos"
|
||||||
)
|
)
|
||||||
self.assertEqual(
|
self.assertEqual(response.data["executors_by_cluster"][0]["executors_count"], 1)
|
||||||
response.data["executors_by_cluster"][0]["executors_count"], 1
|
|
||||||
)
|
|
||||||
|
|
||||||
def test_dashboard_endpoint_uses_latest_available_f3_years_for_growth(self):
|
def test_dashboard_endpoint_uses_latest_available_f3_years_for_growth(self):
|
||||||
organization = OrganizationFactory.create(
|
organization = OrganizationFactory.create(
|
||||||
|
|||||||
Reference in New Issue
Block a user