rename api: statistics->getStatistics, fixes #2603

This commit is contained in:
j 2014-12-22 10:31:23 +00:00
parent ebcd419854
commit ed8f8517c5
2 changed files with 3 additions and 3 deletions

View file

@ -796,7 +796,7 @@ actions.register(setUI, cache=False)
@capability_required_json('canManageUsers') @capability_required_json('canManageUsers')
def statistics(request, data): def getStatistics(request, data):
''' '''
Gets usage statistics Gets usage statistics
takes {} takes {}
@ -813,7 +813,7 @@ def statistics(request, data):
stats = Settings.get('statistics') stats = Settings.get('statistics')
response['data'] = stats response['data'] = stats
return render_to_json_response(response) return render_to_json_response(response)
actions.register(statistics, cache=False) actions.register(getStatistics, cache=False)
def group_json(g): def group_json(g):

View file

@ -84,7 +84,7 @@ pandora.ui.statisticsDialog = function() {
$tabPanel; $tabPanel;
pandora.api.statistics(function(result) { pandora.api.getStatistics(function(result) {
var data = result.data, var data = result.data,
flagCountry = {}, flagCountry = {},