Commit 38a1f27d authored by Vincent Pelletier's avatar Vincent Pelletier

Fix ERP5 per-module stats.

JSON only supports strings as object "keys", so true/false become
"true"/"false".
parent b9989e83
......@@ -553,7 +553,7 @@ class ERP5SiteStats(GenericSiteStats):
for module_id, module_dict_state in state['module'].iteritems():
module_dict = result.module[module_id]
for is_document, date_dict_state in module_dict_state.iteritems():
date_dict = module_dict[is_document]
date_dict = module_dict[is_document == 'true']
for date, apdex_state in date_dict_state.iteritems():
date_dict[date] = APDEXStats.fromJSONState(apdex_state, getDuration)
no_module = result.no_module
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment