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:
|
||||
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(
|
||||
|
||||
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user