Merge 2 steps

This commit is contained in:
CasperVerswijvelt 2021-04-24 13:04:21 +02:00 committed by R. Miles McCain
parent 07f3926a9c
commit 2a6efe1b7f

View File

@ -132,10 +132,8 @@ class Service(models.Model):
service=self, start_time__lt=end_time, start_time__gt=start_time
)
hit_count = hits.count()
hits = Hit.objects.filter(
service=self
)
has_hits = hits.exists()
has_hits = Hit.objects.filter(service=self).exists()
bounces = sessions.filter(is_bounce=True)
bounce_count = bounces.count()