Skip to content

Commit

Permalink
Merge branch 'feature/organization-ordering-api-filters' into staging
Browse files Browse the repository at this point in the history
  • Loading branch information
zMardone committed Dec 18, 2023
2 parents c820135 + cd4a5e1 commit a02bfeb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions connect/api/v2/projects/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ def get_queryset(self, **kwargs):

organization__uuid = self.kwargs["organization_uuid"]
projects = Project.objects.filter(organization__uuid=organization__uuid)

return super().get_queryset().filter(project__in=projects)
opened_projects = super().get_queryset().filter(project__in=projects).order_by('day').distinct('project')
return opened_projects

def get_ordering(self):
valid_fields = (
Expand Down

0 comments on commit a02bfeb

Please sign in to comment.