Add 4-th custom definition which is equal to "enable_prompts" setting

This commit is contained in:
Ivan Kravets
2015-03-20 22:29:29 +02:00
parent a8a9451c73
commit e82f8dc086

View File

@ -89,6 +89,7 @@ class MeasurementProtocol(TelemetryBase):
self['cd1'] = get_systype()
self['cd2'] = "Python/%s %s" % (platform.python_version(),
platform.platform())
self['cd4'] = 1 if app.get_setting("enable_prompts") else 0
def _prefill_screen_name(self):
args = [str(s).lower() for s in sys_argv[1:]]