Skip to content
Snippets Groups Projects
Commit 9cc6f9ee authored by Piotr Gawron's avatar Piotr Gawron
Browse files

debug printing removed

parent 3ab7da2f
No related branches found
No related tags found
1 merge request!34Performance of subject list
import json
from django.contrib.auth.decorators import login_required
from django.http import JsonResponse
......@@ -147,17 +145,13 @@ def subjects(request, type):
count = all_subjects.count()
ordered_subjects = get_subjects_order(all_subjects, order_column, order_dir)
filtered_subjects = get_subjects_filtered(ordered_subjects, filters)
sliced_subjects = filtered_subjects[start:(start + length)]
subjects = sliced_subjects
count_filtered = filtered_subjects.count()
print json.dumps(request.GET, indent=2)
data = []
for subject in subjects:
data.append(serialize_subject(subject))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment