From d950a62200338cf1791d8717a0180862deeef319 Mon Sep 17 00:00:00 2001 From: Lex Berezhny Date: Mon, 28 May 2018 18:47:56 -0400 Subject: [PATCH] include the new linux analytics in track events --- lbrynet/analytics.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/lbrynet/analytics.py b/lbrynet/analytics.py index 6cd1f1e69..c759e242c 100644 --- a/lbrynet/analytics.py +++ b/lbrynet/analytics.py @@ -185,7 +185,7 @@ class Manager(object): @staticmethod def _make_context(platform, wallet): - return { + context= { 'app': { 'name': 'lbrynet', 'version': platform['lbrynet_version'], @@ -206,6 +206,10 @@ class Manager(object): 'version': '1.0.0' }, } + if 'desktop' in platform and 'distro' in platform: + context['os']['desktop'] = platform['desktop'] + context['os']['distro'] = platform['distro'] + return context @staticmethod def _if_deferred(maybe_deferred, callback, *args, **kwargs):