mirror of
https://github.com/zulip/zulip.git
synced 2025-10-23 04:52:12 +00:00
counts: Fix current_month_accumulated_count_for_user bounds.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
committed by
Tim Abbott
parent
1044af0015
commit
22de8cfea3
@@ -98,8 +98,8 @@ class CountStat:
|
|||||||
result = self.data_collector.output_table.objects.filter( # type: ignore[attr-defined] # see above
|
result = self.data_collector.output_table.objects.filter( # type: ignore[attr-defined] # see above
|
||||||
user=user,
|
user=user,
|
||||||
property=self.property,
|
property=self.property,
|
||||||
end_time__gte=start_of_month,
|
end_time__gt=start_of_month,
|
||||||
end_time__lt=start_of_next_month,
|
end_time__lte=start_of_next_month,
|
||||||
).aggregate(models.Sum("value"))
|
).aggregate(models.Sum("value"))
|
||||||
|
|
||||||
total_value = result["value__sum"] or 0
|
total_value = result["value__sum"] or 0
|
||||||
|
Reference in New Issue
Block a user