From 6f6a9123128f25634e07c6528e840b59721bd1af Mon Sep 17 00:00:00 2001 From: moanos Date: Sat, 3 Aug 2024 12:11:52 +0200 Subject: [PATCH] fix: use new adoption status category --- src/fellchensammlung/tools/metrics.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/fellchensammlung/tools/metrics.py b/src/fellchensammlung/tools/metrics.py index 50f6dd0..71b1af2 100644 --- a/src/fellchensammlung/tools/metrics.py +++ b/src/fellchensammlung/tools/metrics.py @@ -14,8 +14,8 @@ def gather_metrics_data(): adoptionnoticestatus__major_status=AdoptionNoticeStatus.CLOSED).count() num_adoption_notices_disabled = AdoptionNotice.objects.filter( adoptionnoticestatus__major_status=AdoptionNoticeStatus.DISABLED).count() - num_adoption_notices_in_review = AdoptionNotice.objects.filter( - adoptionnoticestatus__major_status=AdoptionNoticeStatus.IN_REVIEW).count() + num_adoption_notices_awaiting_action = AdoptionNotice.objects.filter( + adoptionnoticestatus__major_status=AdoptionNoticeStatus.AWAITING_ACTION).count() adoption_notices_without_location = AdoptionNotice.objects.filter(location__isnull=True).count() data = { @@ -27,7 +27,7 @@ def gather_metrics_data(): 'active': num_adoption_notices_active, 'closed': num_adoption_notices_closed, 'disabled': num_adoption_notices_disabled, - 'in_review': num_adoption_notices_in_review, + 'awaiting_action': num_adoption_notices_awaiting_action, }, 'adoption_notices_without_location': adoption_notices_without_location }