排行榜调整

dev_home
cxt 5 years ago
parent 3876d69b29
commit 457d4d9228

@ -150,7 +150,7 @@ class Competition < ApplicationRecord
end
def charts_count
competition_awards.pluck(:num)&.sum > 0 ? competition_awards.pluck(:num)&.sum : awards_count
competition_awards.pluck(:num)&.sum.to_i > 0 ? competition_awards.pluck(:num)&.sum.to_i : awards_count
end
def manager?(user)

Loading…
Cancel
Save