|
|
@ -33,16 +33,16 @@ def metrics(request):
|
|
|
|
.filter(number_validated=True, shift_count__gte=1)
|
|
|
|
.filter(number_validated=True, shift_count__gte=1)
|
|
|
|
.count(),
|
|
|
|
.count(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
|
|
|
|
(
|
|
|
|
|
|
|
|
"messages_sent_total",
|
|
|
|
|
|
|
|
Message.objects.all().count(),
|
|
|
|
|
|
|
|
),
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"worked_shifts_total",
|
|
|
|
"worked_shifts_total",
|
|
|
|
ShiftRegistration.objects.filter(
|
|
|
|
ShiftRegistration.objects.filter(
|
|
|
|
state=ShiftRegistration.RegState.CHECKED_IN
|
|
|
|
state=ShiftRegistration.RegState.CHECKED_IN
|
|
|
|
).count(),
|
|
|
|
).count(),
|
|
|
|
),
|
|
|
|
),
|
|
|
|
(
|
|
|
|
|
|
|
|
"messages_sent_total",
|
|
|
|
|
|
|
|
Message.objects.all().count(),
|
|
|
|
|
|
|
|
),
|
|
|
|
|
|
|
|
(
|
|
|
|
(
|
|
|
|
"worked_seconds_total",
|
|
|
|
"worked_seconds_total",
|
|
|
|
ShiftRegistration.objects.filter(
|
|
|
|
ShiftRegistration.objects.filter(
|
|
|
|