mirror of
https://gitlab2.federez.net/re2o/re2o
synced 2024-11-16 00:13:12 +00:00
Add email state statistics
This commit is contained in:
parent
283f272931
commit
23a5bd05e7
1 changed files with 18 additions and 0 deletions
|
@ -284,6 +284,24 @@ def stats_general(request):
|
||||||
_all_whitelisted.exclude(adherent__isnull=True).count(),
|
_all_whitelisted.exclude(adherent__isnull=True).count(),
|
||||||
_all_whitelisted.exclude(club__isnull=True).count(),
|
_all_whitelisted.exclude(club__isnull=True).count(),
|
||||||
],
|
],
|
||||||
|
"email_state_verified_users": [
|
||||||
|
_("Users with a verified email"),
|
||||||
|
User.objects.filter(email_state=User.EMAIL_STATE_VERIFIED).count(),
|
||||||
|
Adherent.objects.filter(email_state=User.EMAIL_STATE_VERIFIED).count(),
|
||||||
|
Club.objects.filter(email_state=User.EMAIL_STATE_VERIFIED).count(),
|
||||||
|
],
|
||||||
|
"email_state_unverified_users": [
|
||||||
|
_("Users with an unverified email"),
|
||||||
|
User.objects.filter(email_state=User.EMAIL_STATE_UNVERIFIED).count(),
|
||||||
|
Adherent.objects.filter(email_state=User.EMAIL_STATE_UNVERIFIED).count(),
|
||||||
|
Club.objects.filter(email_state=User.EMAIL_STATE_UNVERIFIED).count(),
|
||||||
|
],
|
||||||
|
"email_state_pending_users": [
|
||||||
|
_("Users pending email confirmation"),
|
||||||
|
User.objects.filter(email_state=User.EMAIL_STATE_PENDING).count(),
|
||||||
|
Adherent.objects.filter(email_state=User.EMAIL_STATE_PENDING).count(),
|
||||||
|
Club.objects.filter(email_state=User.EMAIL_STATE_PENDING).count(),
|
||||||
|
],
|
||||||
"actives_interfaces": [
|
"actives_interfaces": [
|
||||||
_("Active interfaces (with access to the network)"),
|
_("Active interfaces (with access to the network)"),
|
||||||
_all_active_interfaces_count.count(),
|
_all_active_interfaces_count.count(),
|
||||||
|
|
Loading…
Reference in a new issue