From 93b555865482e18aac17f0dd70145d844546344a Mon Sep 17 00:00:00 2001 From: Louis King Date: Wed, 6 May 2026 18:06:28 +0100 Subject: [PATCH] fix: include operators in members count on homepage widget --- src/meshcore_hub/api/routes/dashboard.py | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/meshcore_hub/api/routes/dashboard.py b/src/meshcore_hub/api/routes/dashboard.py index a21e90a..76887c7 100644 --- a/src/meshcore_hub/api/routes/dashboard.py +++ b/src/meshcore_hub/api/routes/dashboard.py @@ -225,10 +225,7 @@ async def get_stats( session.execute( select(func.count()) .select_from(UserProfile) - .where( - UserProfile.roles.contains(member_role), - ~UserProfile.roles.contains(operator_role), - ) + .where(UserProfile.roles.contains(member_role)) ).scalar() or 0 )