Use device family in device field

This commit is contained in:
R. Miles McCain 2020-04-16 10:39:55 -04:00
parent ac0f4cee73
commit 35937d648f
No known key found for this signature in database
GPG Key ID: 91CB47BDDF2671A5

View File

@ -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", ""),