We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eac3aab commit 3f71f16Copy full SHA for 3f71f16
1 file changed
api/platform_hub/services.py
@@ -48,7 +48,10 @@ def get_summary(
48
).count()
49
50
total_users = (
51
- FFAdminUser.objects.filter(organisations__in=organisations).distinct().count()
+ FFAdminUser.objects.filter(organisations__in=organisations)
52
+ .values("id")
53
+ .distinct()
54
+ .count()
55
)
56
57
total_projects = Project.objects.filter(organisation__in=organisations).count()
@@ -62,12 +65,16 @@ def get_summary(
62
65
organisations__in=organisations,
63
66
last_login__gte=cutoff,
64
67
68
69
.distinct()
70
.count()
71
72
73
active_organisations = (
- organisations.filter(users__last_login__gte=cutoff).distinct().count()
74
+ organisations.filter(users__last_login__gte=cutoff)
75
76
77
78
79
80
total_integrations = 0
0 commit comments