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

Removed popularity weight in similar radio, to avoid filter bubbles

See merge request funkwhale/funkwhale!579
merge-requests/622/head
Eliot Berriot 2019-01-31 14:58:10 +01:00
commit 6ebd1af4ab
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -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")