From 1c5151ba189da73289336326042cee2ace3d0a02 Mon Sep 17 00:00:00 2001 From: "R. Miles McCain" Date: Thu, 16 Apr 2020 10:40:38 -0400 Subject: [PATCH] Use device family for device logging --- shynet/analytics/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shynet/analytics/tasks.py b/shynet/analytics/tasks.py index 9fc9e94..e3b7e2c 100644 --- a/shynet/analytics/tasks.py +++ b/shynet/analytics/tasks.py @@ -87,7 +87,7 @@ def ingress_request( user_agent=user_agent, identifier=identifier.strip(), browser=ua.browser.family or "", - device=ua.device.model or "", + device=ua.device.family or ua.device.model or "", device_type=device_type, os=ua.os.family or "", asn=ip_data.get("asn", ""),