"Random selection" change

Reduces the frequency with which controversial proposals are brought to the front of the review queue.
This commit is contained in:
Christopher Neugebauer 2016-08-19 10:29:04 +10:00 committed by GitHub
parent f3fc572ca7
commit efd6ff88f8

View file

@ -209,7 +209,7 @@ def review_random_proposal(request, section_slug):
if len(too_few_set) > 0:
proposals = too_few_set.all()
elif len(controversial_set) > 0:
elif len(controversial_set) > 0 and random.random() < 0.2:
proposals = controversial_set.all()
else:
# Select a proposal with less than the median number of total votes