mirror of
https://gitlink.org.cn/Gitlink/forgeplus.git
synced 2026-05-03 11:50:49 +08:00
15 lines
282 B
Ruby
15 lines
282 B
Ruby
class Admins::UsersRankController < Admins::BaseController
|
|
|
|
def index
|
|
@rank_date = rank_date
|
|
@date_rank = $redis_cache.zrevrange("v2-user-rank-#{rank_date}", 0, -1, withscores: true)
|
|
end
|
|
|
|
private
|
|
|
|
def rank_date
|
|
params.fetch(:date, Date.today.to_s)
|
|
end
|
|
|
|
|
|
end |