From 88d734eaeb62c3d46b108f27f7fb87aa1ef76c46 Mon Sep 17 00:00:00 2001 From: fbormann Date: Fri, 3 Mar 2017 01:53:02 -0300 Subject: [PATCH] fixed VAR05 --- api/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/api/views.py b/api/views.py index 9877989..26d8ef7 100644 --- a/api/views.py +++ b/api/views.py @@ -65,7 +65,7 @@ class ReportView(LoginRequiredMixin, generic.TemplateView): for comment in comments_by_teacher: help_posts_ids.append(comment.post.id) #number of help posts created by the user that the teacher commented on - interactions['help_posts_commented_by_teacher'] = help_posts.filter(user=student, id__in = help_posts_ids) + interactions['help_posts_commented_by_teacher'] = help_posts.filter(user=student, id__in = help_posts_ids).count() comments_by_others = Comment.objects.filter(user__in=subject.students.exclude(id = student.id)) -- libgit2 0.21.2