remove unnecessary count
This commit is contained in:
@@ -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]
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user