Files
gitlink-forgeplus/app/views/topics/_excellent_project.json.jbuilder
2021-11-03 10:19:01 +08:00

4 lines
179 B
Ruby

json.(excellent_project, :id, :title, :url)
project_common = $redis_cache.hgetall("v2-project-common:#{excellent_project&.uuid}")
json.visits (project_common['visits'] || 0).to_i