Fix score issue
This commit is contained in:
parent
6c66f96e9d
commit
52ba13fd51
3 changed files with 4 additions and 4 deletions
|
@ -251,11 +251,11 @@ class Problem(models.Model):
|
|||
q |= Q(testers=user.profile)
|
||||
queryset = queryset.filter(q)
|
||||
|
||||
return queryset.distinct()
|
||||
return queryset
|
||||
|
||||
@classmethod
|
||||
def get_public_problems(cls):
|
||||
return cls.objects.filter(is_public=True, is_organization_private=False).defer('description').distinct()
|
||||
return cls.objects.filter(is_public=True, is_organization_private=False).defer('description')
|
||||
|
||||
def __str__(self):
|
||||
return self.name
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue