From 6a5ce6ddb9676a800209c1df5f99bace9194e4e0 Mon Sep 17 00:00:00 2001 From: "Abeo Anthony, A" Date: Thu, 7 May 2020 19:58:31 +0000 Subject: [PATCH 1/2] ignore vagrant config files --- .gitignore | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.gitignore b/.gitignore index 2a49d0a..f06c669 100644 --- a/.gitignore +++ b/.gitignore @@ -109,6 +109,9 @@ venv/ ENV/ env.bak/ venv.bak/ +Vagrantfile +.vagrant +ubuntu-xenial-16.04-cloudimg-console.log # Spyder project settings .spyderproject From a457c2be7b4d10b2a7bcc65c10430c4c31464a44 Mon Sep 17 00:00:00 2001 From: "Abeo Anthony, A" Date: Thu, 7 May 2020 19:59:09 +0000 Subject: [PATCH 2/2] 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" ]