Merge 2 steps
This commit is contained in:
parent
07f3926a9c
commit
2a6efe1b7f
@ -132,10 +132,8 @@ class Service(models.Model):
|
|||||||
service=self, start_time__lt=end_time, start_time__gt=start_time
|
service=self, start_time__lt=end_time, start_time__gt=start_time
|
||||||
)
|
)
|
||||||
hit_count = hits.count()
|
hit_count = hits.count()
|
||||||
hits = Hit.objects.filter(
|
|
||||||
service=self
|
has_hits = Hit.objects.filter(service=self).exists()
|
||||||
)
|
|
||||||
has_hits = hits.exists()
|
|
||||||
|
|
||||||
bounces = sessions.filter(is_bounce=True)
|
bounces = sessions.filter(is_bounce=True)
|
||||||
bounce_count = bounces.count()
|
bounce_count = bounces.count()
|
||||||
|
Loading…
Reference in New Issue
Block a user