Skip to content

Commit

Permalink
Remove five flag experiment
Browse files Browse the repository at this point in the history
  • Loading branch information
Undo1 committed Mar 12, 2018
1 parent 6624b35 commit e3fb4ba
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions app/models/post.rb
Expand Up @@ -91,13 +91,6 @@ def autoflag

Rails.logger.warn "[autoflagging] #{id}: lottery begin"
max_flags = [post.site.max_flags_per_post, (FlagSetting['max_flags'] || '3').to_i].min

if post.reasons.pluck(:weight).reduce(:+) >= (FlagSetting['five_flag_experiment_threshold'] || 10_000).to_i && post.site.max_flags_per_post == 3
Rails.logger.warn "[autoflagging] #{id}: Five flag timing experiment began"
max_flags = rand(1..5)
Rails.logger.warn "[autoflagging] #{id}: Five flag timing experiment chose flag count: #{max_flags}"
end

core_count = (max_flags / 2.0).ceil
other_count = max_flags - core_count

Expand Down

0 comments on commit e3fb4ba

Please sign in to comment.