Trim analytic event platform version for macOS

This commit is contained in:
JonnyWong16 2023-03-14 13:02:49 -07:00
parent 8664570a78
commit 93081e3f6d
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -2859,7 +2859,7 @@ def analytics_event(name, **kwargs):
event.set_event_param('branch', CONFIG.GIT_BRANCH)
event.set_event_param('platform', common.PLATFORM)
event.set_event_param('platformRelease', common.PLATFORM_RELEASE)
event.set_event_param('platformVersion', common.PLATFORM_VERSION)
event.set_event_param('platformVersion', common.PLATFORM_VERSION.split(';', 1)[0] if common.PLATFORM == 'Darwin' else common.PLATFORM_VERSION)
event.set_event_param('linuxDistro', common.PLATFORM_LINUX_DISTRO)
event.set_event_param('pythonVersion', common.PYTHON_VERSION)
event.set_event_param('language', SYS_LANGUAGE)