another stat fix
This commit is contained in:
parent
c05bfae0a7
commit
44e3a89faf
1 changed files with 2 additions and 2 deletions
|
@ -116,7 +116,7 @@ class Statistics(dict):
|
|||
|
||||
name = {}
|
||||
for key in ['system', 'browser']:
|
||||
version = item[key];
|
||||
version = item[key]
|
||||
if version:
|
||||
name[key] = get_name(key, version)
|
||||
if name[key]:
|
||||
|
@ -125,7 +125,7 @@ class Statistics(dict):
|
|||
key = key + 'version';
|
||||
self._increment(self[mode][key], version)
|
||||
|
||||
if name['system'] and name['browser']:
|
||||
if name.get('system') and name.get('browser'):
|
||||
name = name['system'] + ' / ' + name['browser']
|
||||
self._increment(self[mode]['systemandbrowser'], name)
|
||||
|
||||
|
|
Loading…
Reference in a new issue