Skip to content

Commit

Permalink
Remove any order_by to ensure values_list is properly unique.
Browse files Browse the repository at this point in the history
  • Loading branch information
rtibbles committed Apr 2, 2024
1 parent 033234c commit ca1d70d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion kolibri/core/content/utils/content_request.py
Original file line number Diff line number Diff line change
Expand Up @@ -584,7 +584,9 @@ def process_metadata_import(incomplete_downloads_without_metadata):
preferred_instance_ids = list(
incomplete_downloads_without_metadata.values_list(
"source_instance_id", flat=True
).distinct()
)
# Remove any ordering to ensure the distinct makes the list properly unique.
.order_by().distinct()
)
version_filter = ">=0.16.0"
preferred_peers = PreferredDevicesWithClient(
Expand Down

0 comments on commit ca1d70d

Please sign in to comment.