Skip to content

Commit

Permalink
distinct samples at the end
Browse files Browse the repository at this point in the history
  • Loading branch information
barslmn committed Jan 27, 2025
1 parent 75f3b75 commit 588f33d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions canvas/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ def sample_search(request):
pass

# Rest of the view
samples = samples.distinct()
samples = samples.order_by("-entry_date")
samples = get_samples_for_user(request.user, samples)
len_samples = len(samples)
Expand Down

0 comments on commit 588f33d

Please sign in to comment.