Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Send current synthDriver name and brailleDisplay name to update server for stats gathering. #8217

Merged
merged 10 commits into from Jun 17, 2018
6 changes: 6 additions & 0 deletions source/updateCheck.py
Expand Up @@ -30,6 +30,8 @@
import ssl
import wx
import languageHandler
import speech
import braille
import gui
from gui import guiHelper
from logHandler import log
Expand Down Expand Up @@ -71,6 +73,8 @@ def checkForUpdate(auto=False):
@rtype: dict
@raise RuntimeError: If there is an error checking for an update.
"""
synthDriver=speech.getSynth()
brailleDisplay=braille.handler.display if braille.handler else None
params = {
"autoCheck": auto,
"version": versionInfo.version,
Expand All @@ -79,6 +83,8 @@ def checkForUpdate(auto=False):
"x64": os.environ.get("PROCESSOR_ARCHITEW6432") == "AMD64",
"language": languageHandler.getLanguage(),
"installed": config.isInstalledCopy(),
"synthDriver":synthDriver.name if synthDriver else None,
"brailleDisplay":brailleDisplay.name if brailleDisplay else None,
}
url = "%s?%s" % (CHECK_URL, urllib.urlencode(params))
try:
Expand Down