Fix the results to be returned in the same format that the admin app expects.

This commit is contained in:
Rebecca Law
2017-10-23 15:06:11 +01:00
parent bfb8528ea9
commit f1f2e5cd90
2 changed files with 28 additions and 1 deletions

View File

@@ -116,7 +116,9 @@ def get_platform_stats():
end_date=end_date,
include_from_test_key=include_from_test_key
)
result = jsonify(data)
stats = statistics.format_statistics(data)
result = jsonify(stats)
return result