include upload limit in user promotion report

This commit is contained in:
r888888888
2015-09-14 15:42:29 -07:00
parent 6e93dedf3d
commit 872c20e8d2
2 changed files with 3 additions and 1 deletions

View File

@@ -55,7 +55,7 @@ module Reports
end
def users
::User.where("users.level < ? and users.post_upload_count >= 250", ::User::Levels::CONTRIBUTOR).order("created_at desc").limit(50).map {|x| Reports::UserPromotions::User.new(x)}
::User.where("users.level < ? and users.post_upload_count >= 250", ::User::Levels::CONTRIBUTOR).order("created_at desc").map {|x| Reports::UserPromotions::User.new(x)}
end
end
end

View File

@@ -15,6 +15,7 @@
<th data-sort="int" title="25% of uploads received this score or less">quartile score</th>
<th data-sort="int" title="50% of uploads received this score or less">median score</th>
<th data-sort="int">deletion</th>
<th data-sort="int">limit</th>
</tr>
</thead>
<tbody>
@@ -29,6 +30,7 @@
<td><%= user.quartile_score %></td>
<td><%= user.median_score %></td>
<td><%= link_to number_to_percentage(user.deletion_confidence_interval, :precision => 0), posts_path(:tags => "uploader:#{user.name} status:deleted", :limit => 200) %></td>
<td><%= user.upload_limit %></td>
</tr>
<% end %>
<% end %>