diff --git a/temba/flows/views.py b/temba/flows/views.py index 2a33107964e..c227c442e44 100644 --- a/temba/flows/views.py +++ b/temba/flows/views.py @@ -1224,10 +1224,8 @@ def render_to_response(self, context, **response_kwargs): # our main histogram date_range = end_date - start_date histogram = self.object.path_counts.filter(from_uuid__in=exit_uuids) - if date_range < timedelta(days=21): - histogram = histogram.extra({"bucket": "date_trunc('hour', period)"}) - min_date = start_date - timedelta(hours=1) - elif date_range < timedelta(days=500): + + if date_range < timedelta(days=500): histogram = histogram.extra({"bucket": "date_trunc('day', period)"}) min_date = end_date - timedelta(days=100) else: