Commit 1eb05cfd by Arthur Barrett

remove unnecessary count

parent 0f70b0aa
...@@ -212,7 +212,7 @@ def search(request, course_id): ...@@ -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]
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment