diff --git a/shiftregister/metrics/views.py b/shiftregister/metrics/views.py index 3e2cbeb..1c77f50 100644 --- a/shiftregister/metrics/views.py +++ b/shiftregister/metrics/views.py @@ -105,7 +105,8 @@ def metrics(request): default=F("required_helpers"), ) ) - .aggregate(sum=Sum("real_required_helpers"))["sum"], + .aggregate(sum=Sum("real_required_helpers"))["sum"] + or 0, ), ( "messages_sent_total",