From f4d9f766460c67185d0f8071d32d4058f3055888 Mon Sep 17 00:00:00 2001 From: r888888888 Date: Tue, 21 Feb 2017 13:12:43 -0800 Subject: [PATCH] remove contributors report --- app/controllers/reports_controller.rb | 4 --- app/views/reports/contributors.html.erb | 47 ------------------------- config/routes.rb | 1 - 3 files changed, 52 deletions(-) delete mode 100644 app/views/reports/contributors.html.erb diff --git a/app/controllers/reports_controller.rb b/app/controllers/reports_controller.rb index ebffe9985..ffadc275e 100644 --- a/app/controllers/reports_controller.rb +++ b/app/controllers/reports_controller.rb @@ -3,10 +3,6 @@ class ReportsController < ApplicationController before_filter :gold_only, :only => [:similar_users] before_filter :moderator_only, :only => [:post_versions, :post_versions_create] - def contributors - @report = Reports::Contributors.new - end - def uploads @report = Reports::Uploads.new(params[:min_date], params[:max_date], params[:queries]) end diff --git a/app/views/reports/contributors.html.erb b/app/views/reports/contributors.html.erb deleted file mode 100644 index e1e777227..000000000 --- a/app/views/reports/contributors.html.erb +++ /dev/null @@ -1,47 +0,0 @@ -
-
-

Contributor Report

- -

Binomial proportion confidence interval for how likely a user's uploads will achieve a score of at at least n with 95% confidence within the past 30 days. Most statistics are not significant unless there are at least 300 uploads.

- - - - - - - - - - - - - <% @report.users.each do |user| %> - <% if user.confidence_interval_for(3) > -1 %> - - - - - - - - <% end %> - <% end %> - -
UserLevelUploadsDel ChanceNeg Score Chance
<%= link_to_user user.user %><%= user.level_string %><%= link_to user.post_upload_count, posts_path(:tags => "user:#{user.name} order:random", :limit => 200) %><%= link_to number_to_percentage(user.deletion_confidence_interval, :precision => 0), posts_path(:tags => "user:#{user.name} status:deleted", :limit => 200) %><%= link_to number_to_percentage(user.negative_score_confidence_interval, :precision => 0), posts_path(:tags => "user:#{user.name} score:<0", :limit => 200) %>
-
-
- -<% content_for(:page_title) do %> - Contributor Report - <%= Danbooru.config.app_name %> -<% end %> - -<%= content_for(:html_header) do %> - -<% end %> diff --git a/config/routes.rb b/config/routes.rb index 4101bdd1f..39546c755 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -230,7 +230,6 @@ Rails.application.routes.draw do end resources :artist_commentary_versions, :only => [:index] resource :related_tag, :only => [:show, :update] - get "reports/contributors" => "reports#contributors" get "reports/uploads" => "reports#uploads" get "reports/similar_users" => "reports#similar_users" get "reports/post_versions" => "reports#post_versions"