forked from 0x2620/pandora
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 = {}
|
name = {}
|
||||||
for key in ['system', 'browser']:
|
for key in ['system', 'browser']:
|
||||||
version = item[key];
|
version = item[key]
|
||||||
if version:
|
if version:
|
||||||
name[key] = get_name(key, version)
|
name[key] = get_name(key, version)
|
||||||
if name[key]:
|
if name[key]:
|
||||||
|
@ -125,7 +125,7 @@ class Statistics(dict):
|
||||||
key = key + 'version';
|
key = key + 'version';
|
||||||
self._increment(self[mode][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']
|
name = name['system'] + ' / ' + name['browser']
|
||||||
self._increment(self[mode]['systemandbrowser'], name)
|
self._increment(self[mode]['systemandbrowser'], name)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue