forked from 0x2620/pandora
rename api: statistics->getStatistics, fixes #2603
This commit is contained in:
parent
ebcd419854
commit
ed8f8517c5
2 changed files with 3 additions and 3 deletions
|
@ -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):
|
||||
|
|
|
@ -84,7 +84,7 @@ pandora.ui.statisticsDialog = function() {
|
|||
|
||||
$tabPanel;
|
||||
|
||||
pandora.api.statistics(function(result) {
|
||||
pandora.api.getStatistics(function(result) {
|
||||
|
||||
var data = result.data,
|
||||
flagCountry = {},
|
||||
|
|
Loading…
Reference in a new issue