remove unnecessary count

This commit is contained in:
Arthur Barrett
2013-05-08 15:07:36 -04:00
parent 0f70b0aa8a
commit 1eb05cfd4e

View File

@@ -212,7 +212,7 @@ def search(request, course_id):
total = notes.count() total = notes.count()
rows = notes[offset:offset+limit] rows = notes[offset:offset+limit]
result = { result = {
'total': notes.count(), 'total': total,
'rows': [note.as_dict() for note in rows] 'rows': [note.as_dict() for note in rows]
} }