directly return number of active users from backend for usage display

This commit is contained in:
Jan Kessler
2025-06-25 14:22:18 +02:00
parent b6e2b2e514
commit be3d6f1b2a
3 changed files with 31 additions and 26 deletions

View File

@@ -152,6 +152,11 @@ def get_models_in_use():
return models_in_use
def get_active_users_count():
"""Get the number of active users."""
return len(USER_POOL)
def get_active_user_ids():
"""Get the list of active user IDs."""
return list(USER_POOL.keys())