Merge #27 (duplication fix)

This commit is contained in:
R. Miles McCain 2020-05-07 16:54:49 -04:00
commit 1c01c27326
No known key found for this signature in database
GPG Key ID: 24F9B6A2588C5408
2 changed files with 3 additions and 6 deletions

3
.gitignore vendored
View File

@ -109,6 +109,9 @@ venv/
ENV/
env.bak/
venv.bak/
Vagrantfile
.vagrant
ubuntu-xenial-16.04-cloudimg-console.log
# Spyder project settings
.spyderproject

View File

@ -152,12 +152,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"
]