Commit 88d734eaeb62c3d46b108f27f7fb87aa1ef76c46
1 parent
22bb3c82
Exists in
master
and in
3 other branches
fixed VAR05
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
api/views.py
... | ... | @@ -65,7 +65,7 @@ class ReportView(LoginRequiredMixin, generic.TemplateView): |
65 | 65 | for comment in comments_by_teacher: |
66 | 66 | help_posts_ids.append(comment.post.id) |
67 | 67 | #number of help posts created by the user that the teacher commented on |
68 | - interactions['help_posts_commented_by_teacher'] = help_posts.filter(user=student, id__in = help_posts_ids) | |
68 | + interactions['help_posts_commented_by_teacher'] = help_posts.filter(user=student, id__in = help_posts_ids).count() | |
69 | 69 | |
70 | 70 | |
71 | 71 | comments_by_others = Comment.objects.filter(user__in=subject.students.exclude(id = student.id)) | ... | ... |