From ed8f8517c5a2fd0c32f9105cc8ce7630c3f68d87 Mon Sep 17 00:00:00 2001 From: j <0x006A@0x2620.org> Date: Mon, 22 Dec 2014 10:31:23 +0000 Subject: [PATCH] rename api: statistics->getStatistics, fixes #2603 --- pandora/user/views.py | 4 ++-- static/js/statisticsDialog.js | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/pandora/user/views.py b/pandora/user/views.py index 5ffc1f42b..c0fc48b91 100644 --- a/pandora/user/views.py +++ b/pandora/user/views.py @@ -796,7 +796,7 @@ actions.register(setUI, cache=False) @capability_required_json('canManageUsers') -def statistics(request, data): +def getStatistics(request, data): ''' Gets usage statistics takes {} @@ -813,7 +813,7 @@ def statistics(request, data): stats = Settings.get('statistics') response['data'] = stats return render_to_json_response(response) -actions.register(statistics, cache=False) +actions.register(getStatistics, cache=False) def group_json(g): diff --git a/static/js/statisticsDialog.js b/static/js/statisticsDialog.js index 07cd77e5e..2ca6b4230 100644 --- a/static/js/statisticsDialog.js +++ b/static/js/statisticsDialog.js @@ -84,7 +84,7 @@ pandora.ui.statisticsDialog = function() { $tabPanel; - pandora.api.statistics(function(result) { + pandora.api.getStatistics(function(result) { var data = result.data, flagCountry = {},