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] }