aboutsummaryrefslogtreecommitdiffstats
path: root/ctrack/core
diff options
context:
space:
mode:
authorMatthew Lemon <lemon@matthewlemon.com>2020-10-23 13:29:06 +0100
committerMatthew Lemon <lemon@matthewlemon.com>2020-10-23 13:29:06 +0100
commit8ffb8fa05b2a45704412e9fd4edcdb41049b9c18 (patch)
treeb8d82bbad02c813393184299d64d46e2c39e2f16 /ctrack/core
parenta8f9414979b79cc7799c7f6ff1ce318c7ebc2ba9 (diff)
only private events are counted for home page stats
Diffstat (limited to 'ctrack/core')
-rw-r--r--ctrack/core/views.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/ctrack/core/views.py b/ctrack/core/views.py
index 3984b2d..5fc94ec 100644
--- a/ctrack/core/views.py
+++ b/ctrack/core/views.py
@@ -30,11 +30,11 @@ def home_page(request):
caf_users = get_user_model().objects.all()
no_orgs = Organisation.objects.count()
no_people = Person.objects.count()
- no_singledatetime_events = SingleDateTimeEvent.objects.count()
- no_meetings = SingleDateTimeEvent.objects.filter(type_descriptor="MEETING").count()
- no_emails = SingleDateTimeEvent.objects.filter(type_descriptor="EMAIL").count()
- no_phone_calls = SingleDateTimeEvent.objects.filter(type_descriptor="PHONE_CALL").count()
- no_video_conferences = SingleDateTimeEvent.objects.filter(type_descriptor="VIDEO_CALL").count()
+ no_singledatetime_events = SingleDateTimeEvent.objects.filter(private=False).count()
+ no_meetings = SingleDateTimeEvent.objects.filter(type_descriptor="MEETING", private=False).count()
+ no_emails = SingleDateTimeEvent.objects.filter(type_descriptor="EMAIL", private=False).count()
+ no_phone_calls = SingleDateTimeEvent.objects.filter(type_descriptor="PHONE_CALL", private=False).count()
+ no_video_conferences = SingleDateTimeEvent.objects.filter(type_descriptor="VIDEO_CALL", private=False).count()
no_cafs = CAF.objects.count()
no_oes = Organisation.objects.filter(oes=True).count()
no_essential_services = EssentialService.objects.count()