Zulip server and web application. Open-source team chat that helps teams stay productive and focused.
counts: Fix current_month_accumulated_count_for_user bounds.
Anders Kaseorg22de8cfea3af
diff --git a/analytics/lib/counts.py b/analytics/lib/counts.pyindex 0ef8d58a84e..c75c8205ad1 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 aboveuser=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