Commit 88d734eaeb62c3d46b108f27f7fb87aa1ef76c46

Authored by fbormann
1 parent 22bb3c82

fixed VAR05

Showing 1 changed file with 1 additions and 1 deletions   Show diff stats
@@ -65,7 +65,7 @@ class ReportView(LoginRequiredMixin, generic.TemplateView): @@ -65,7 +65,7 @@ class ReportView(LoginRequiredMixin, generic.TemplateView):
65 for comment in comments_by_teacher: 65 for comment in comments_by_teacher:
66 help_posts_ids.append(comment.post.id) 66 help_posts_ids.append(comment.post.id)
67 #number of help posts created by the user that the teacher commented on 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 comments_by_others = Comment.objects.filter(user__in=subject.students.exclude(id = student.id)) 71 comments_by_others = Comment.objects.filter(user__in=subject.students.exclude(id = student.id))