commit 56c4577b4fe4b40957ecceb4f93a58eacc011b5b Author: Arturo Filastò <art@fuffa.org> Date: Thu Jun 6 21:36:51 2013 +0200 Parse json data before assigning to the datastruct --- oonib/report/file_collector.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/oonib/report/file_collector.py b/oonib/report/file_collector.py index 2f7ac48..8211fe9 100644 --- a/oonib/report/file_collector.py +++ b/oonib/report/file_collector.py @@ -131,8 +131,9 @@ class NewReportHandlerFile(web.RequestHandler): test_name = report_data['test_name'] test_version = report_data['test_version'] probe_asn = report_data['probe_asn'] - content = report_data['content'] + content = json.loads(report_data['content']) content['backend_version'] = config.backend_version + content = json.dumps(content) if not probe_asn: probe_asn = "AS0"