From 1eb05cfd4e753d107fcefb4d29dbdcce5cbaf74a Mon Sep 17 00:00:00 2001 From: Arthur Barrett Date: Wed, 8 May 2013 15:07:36 -0400 Subject: [PATCH] remove unnecessary count --- lms/djangoapps/notes/api.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lms/djangoapps/notes/api.py b/lms/djangoapps/notes/api.py index 7252fdd232..884b87ad55 100644 --- a/lms/djangoapps/notes/api.py +++ b/lms/djangoapps/notes/api.py @@ -212,7 +212,7 @@ def search(request, course_id): total = notes.count() rows = notes[offset:offset+limit] result = { - 'total': notes.count(), + 'total': total, 'rows': [note.as_dict() for note in rows] }