From 442fb6e839ab77c9eda524ace487b671fc7b8dcf Mon Sep 17 00:00:00 2001 From: Calen Pennington Date: Wed, 1 Aug 2012 16:19:29 -0400 Subject: [PATCH] Pass the cursor, rather than the output of cursor.execute, to dictfetchall --- lms/djangoapps/dashboard/views.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lms/djangoapps/dashboard/views.py b/lms/djangoapps/dashboard/views.py index 5cf3fa72c1..c4446bceaa 100644 --- a/lms/djangoapps/dashboard/views.py +++ b/lms/djangoapps/dashboard/views.py @@ -25,7 +25,7 @@ def dashboard(request): from django.db import connection cursor = connection.cursor() - results = dictfetchall(cursor.execute(query)) - + cursor.execute(query) + results = dictfetchall(cursor) return HttpResponse(json.dumps(results, indent=4))