mirror of
https://code.eliotberriot.com/funkwhale/funkwhale.git
synced 2025-10-03 12:39:48 +02:00
Merge branch 'similar-radio-improvements' into 'develop'
Removed popularity weight in similar radio, to avoid filter bubbles See merge request funkwhale/funkwhale!579
This commit is contained in:
commit
6ebd1af4ab
1 changed files with 1 additions and 1 deletions
|
@ -221,7 +221,7 @@ class SimilarRadio(RelatedObjectRadio):
|
|||
next_candidates = [n for n in next_candidates if n[0] in matching_tracks]
|
||||
if not next_candidates:
|
||||
raise NextNotFound()
|
||||
return weighted_choice(next_candidates)
|
||||
return random.choice([c[0] for c in next_candidates])
|
||||
|
||||
|
||||
@registry.register(name="artist")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue