Bug fix to Django view for statistics
diff --git a/planetstack/core/views/stats.py b/planetstack/core/views/stats.py
index 46ebe2e..421fbfe 100644
--- a/planetstack/core/views/stats.py
+++ b/planetstack/core/views/stats.py
@@ -5,7 +5,8 @@
def Stats(request):
model = request.GET['model_name']
pk = int(request.GET['pk'])
- meter = int(request.GET['meter'])
+ meter = request.GET['meter']
+ controller_name = request.GET['controller_name']
- meters = monitor.get_meters(meter, model, pk)
- return json.dumps(meters)
+ meters = driver.get_meter(meter, model, pk)
+ return HttpResponse(json.dumps(meters))