blob: e1794c14d9399c8f89a6d4e4d5069af96b3e0fcd [file] [log] [blame]
from view_common import *
import random
class DashboardAnalyticsAjaxView(View):
def get(self, request, name="hello_world", **kwargs):
if (name == "bigquery"):
(mimetype, data) = DoPlanetStackAnalytics(request)
return HttpResponse(data, content_type=mimetype)
else:
return HttpResponse(json.dumps("Unknown"), content_type='application/javascript')