From 24b99503ecb6ec33f1b0e6a292f077a5ca68a84a Mon Sep 17 00:00:00 2001 From: rolux Date: Mon, 26 Mar 2012 10:42:24 +0000 Subject: [PATCH] in statistics dialog, use live data, not non-existing json file --- static/js/pandora/statisticsDialog.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/static/js/pandora/statisticsDialog.js b/static/js/pandora/statisticsDialog.js index 292b8d767..2d769979c 100644 --- a/static/js/pandora/statisticsDialog.js +++ b/static/js/pandora/statisticsDialog.js @@ -89,14 +89,14 @@ pandora.ui.statisticsDialog = function() { $tabPanel; - Ox.getJSON('/static/json/deleteme.json', function(result) { - /* + //Ox.getJSON('/static/json/deleteme.json', function(result) { + ///* pandora.api.findUsers({ keys: ['browser', 'email', 'firstseen', 'lastseen', 'level', 'location', 'system'], range: [0, 1000000], sort: [{key: 'username', operator: '+'}] }, function(result) { - */ + //*/ var data = {}, flagCountry = {}, @@ -134,9 +134,7 @@ pandora.ui.statisticsDialog = function() { data[mode].day[day] = (data[mode].day[day] || 0) + 1; data[mode].hour[hour] = (data[mode].hour[hour] || 0) + 1; }); - Ox.print("IL:::", item.location) if (!item.location) { - Ox.print("??:::", item.email, item.email.split('.').pop().replace(/(edu|gov|mil)/i, 'us')) item.location = (Ox.getCountryByCode( item.email.split('.').pop().replace(/(edu|gov|mil)/i, 'us') ) || {}).name || '';