From 22de8cfea3afbee76230ac425d33440da2a1fbfd Mon Sep 17 00:00:00 2001 From: Anders Kaseorg Date: Fri, 28 Feb 2025 14:48:11 -0800 Subject: [PATCH] counts: Fix current_month_accumulated_count_for_user bounds. Signed-off-by: Anders Kaseorg --- analytics/lib/counts.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/analytics/lib/counts.py b/analytics/lib/counts.py index 0ef8d58a84..c75c8205ad 100644 --- a/analytics/lib/counts.py +++ b/analytics/lib/counts.py @@ -98,8 +98,8 @@ class CountStat: result = self.data_collector.output_table.objects.filter( # type: ignore[attr-defined] # see above user=user, property=self.property, - end_time__gte=start_of_month, - end_time__lt=start_of_next_month, + end_time__gt=start_of_month, + end_time__lte=start_of_next_month, ).aggregate(models.Sum("value")) total_value = result["value__sum"] or 0