change 3 to 5
This commit is contained in:
parent
8f8a070643
commit
ca80ff7fa4
|
|
@ -222,7 +222,7 @@ class OpenSourceProjectsController < ApplicationController
|
|||
star_items = res.body
|
||||
require 'json'
|
||||
star_items = JSON.parse(star_items)["items"]
|
||||
star_project_ids = star_items[0,3]
|
||||
star_project_ids = star_items[0,5]
|
||||
star_projects = []
|
||||
# 查询出id对应的项目
|
||||
star_project_ids.each do |id|
|
||||
|
|
|
|||
Loading…
Reference in New Issue