|
|
@ -191,8 +191,8 @@ class InitializationDataController < ApplicationController
|
|
|
|
multi_webssh excute_time repo_name averge_star opening_time forbid_copy pod_life challenges_count]
|
|
|
|
multi_webssh excute_time repo_name averge_star opening_time forbid_copy pod_life challenges_count]
|
|
|
|
Shixun.bulk_insert(*shixun_attrs) do |worker|
|
|
|
|
Shixun.bulk_insert(*shixun_attrs) do |worker|
|
|
|
|
@shixuns.each do |shixun|
|
|
|
|
@shixuns.each do |shixun|
|
|
|
|
base_attr = shixun.attributes.dup.except("user_id", "myshixuns_count", "use_scope")
|
|
|
|
base_attr = shixun.attributes.dup.except("user_id", "myshixuns_count", "use_scope", "averge_star")
|
|
|
|
worker.add(base_attr.merge(user_id: 1))
|
|
|
|
worker.add(base_attr.merge(user_id: 1, averge_star: 5))
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|