From 28c23f5782f140bcf32a4dfceab4e98ca2419b74 Mon Sep 17 00:00:00 2001 From: Luca Date: Mon, 8 May 2023 00:11:58 +0200 Subject: [PATCH] Reorder metrics --- shiftregister/metrics/views.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/shiftregister/metrics/views.py b/shiftregister/metrics/views.py index c8dba3a..25a73d8 100644 --- a/shiftregister/metrics/views.py +++ b/shiftregister/metrics/views.py @@ -33,16 +33,16 @@ def metrics(request): .filter(number_validated=True, shift_count__gte=1) .count(), ), + ( + "messages_sent_total", + Message.objects.all().count(), + ), ( "worked_shifts_total", ShiftRegistration.objects.filter( state=ShiftRegistration.RegState.CHECKED_IN ).count(), ), - ( - "messages_sent_total", - Message.objects.all().count(), - ), ( "worked_seconds_total", ShiftRegistration.objects.filter(