Skip to content
Snippets Groups Projects
Commit 6ebd1af4 authored by Eliot Berriot's avatar Eliot Berriot
Browse files

Merge branch 'similar-radio-improvements' into 'develop'

Removed popularity weight in similar radio, to avoid filter bubbles

See merge request funkwhale/funkwhale!579
parents e6a5f69f c16258ed
No related branches found
No related tags found
No related merge requests found
...@@ -221,7 +221,7 @@ class SimilarRadio(RelatedObjectRadio): ...@@ -221,7 +221,7 @@ class SimilarRadio(RelatedObjectRadio):
next_candidates = [n for n in next_candidates if n[0] in matching_tracks] next_candidates = [n for n in next_candidates if n[0] in matching_tracks]
if not next_candidates: if not next_candidates:
raise NextNotFound() raise NextNotFound()
return weighted_choice(next_candidates) return random.choice([c[0] for c in next_candidates])
@registry.register(name="artist") @registry.register(name="artist")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment