fix user limit text

This commit is contained in:
albert
2013-03-22 23:16:03 -04:00
parent df54434456
commit 10ea81bb41

View File

@@ -40,7 +40,7 @@ class UserPresenter
deleted_count = Post.for_user(user.id).deleted.where("created_at >= ?", 3.months.ago).count
pending_count = Post.for_user(user.id).pending.where("created_at >= ?", 3.days.ago).count
approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ? and created_at >= ?", user.id, 1.year.ago).count
approved_count = Post.where("is_flagged = false and is_pending = false and is_deleted = false and uploader_id = ? and created_at >= ?", user.id, 3.months.ago).count
if user.base_upload_limit.to_i != 0
string = "max(base_upload_limit:#{user.base_upload_limit} - (deleted_count:#{deleted_count} / 4), 4) - pending_count:#{pending_count}"