From ad022fdf02c0ebf630321d3d89caab955c13a520 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=89der=20Porto?= Date: Fri, 2 Feb 2024 21:14:55 -0300 Subject: [PATCH] + --- metrics/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/metrics/views.py b/metrics/views.py index 9b989b3..2dbd3c5 100644 --- a/metrics/views.py +++ b/metrics/views.py @@ -155,7 +155,7 @@ def get_done_for_report(reports): } def update_metrics_relations(request): - main_funding = Project.objects.get(text="Wikimedia Community Fund") + main_funding = Project.objects.get(main_funding=True) editors_metrics = Metric.objects.filter(project=main_funding).filter(Q(number_of_editors__gt=0) | Q(number_of_editors_retained__gt=0) | Q(number_of_new_editors__gt=0)) reports = Report.objects.filter(Q(metrics_related__number_of_editors__gt=0)) for report in reports: