Commit 1deaa1a0 authored by Vincent Pelletier's avatar Vincent Pelletier

Fix error_url_status initialisation from JSON.

parent 88194232
...@@ -389,7 +389,9 @@ class GenericSiteStats(object): ...@@ -389,7 +389,9 @@ class GenericSiteStats(object):
error_detail = state['error_detail'] error_detail = state['error_detail']
result = cls(state['threshold'], getDuration, suffix, error_detail) result = cls(state['threshold'], getDuration, suffix, error_detail)
if error_detail: if error_detail:
result.error_url_count.update(state['error_url_count']) error_url_count = result.error_url_count
for state_status, state_url_dict in state['error_url_count'].iteritems():
error_url_count[state_status].update(state_url_dict)
for attribute_id in ('url_apdex', 'apdex'): for attribute_id in ('url_apdex', 'apdex'):
attribute = getattr(result, attribute_id) attribute = getattr(result, attribute_id)
for key, apdex_state in state[attribute_id].iteritems(): for key, apdex_state in state[attribute_id].iteritems():
......
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