forked from LBRYCommunity/lbry-sdk
include the new linux analytics in track events
This commit is contained in:
parent
89729860cb
commit
d950a62200
1 changed files with 5 additions and 1 deletions
|
@ -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):
|
||||
|
|
Loading…
Reference in a new issue