mirror of
https://github.com/ipnet-mesh/meshcore-hub.git
synced 2026-08-08 01:42:53 +02:00
Merge pull request #199 from ipnet-mesh/chore/fix-members-count-widget
fix: include operators in members count widget
This commit is contained in:
@@ -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
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user