From a457c2be7b4d10b2a7bcc65c10430c4c31464a44 Mon Sep 17 00:00:00 2001 From: "Abeo Anthony, A" Date: Thu, 7 May 2020 19:59:09 +0000 Subject: [PATCH] remove duplicated device_types value --- shynet/core/models.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/shynet/core/models.py b/shynet/core/models.py index 82380fc..52b2d81 100644 --- a/shynet/core/models.py +++ b/shynet/core/models.py @@ -131,12 +131,6 @@ class Service(models.Model): .order_by("-count") ) - device_types = ( - sessions.values("device_type") - .annotate(count=models.Count("device_type")) - .order_by("-count") - ) - avg_load_time = hits.aggregate(load_time__avg=models.Avg("load_time"))[ "load_time__avg" ]