dev_local
jingquan huang 6 years ago
parent 98c5bcca6e
commit a3e3fa0965

@ -153,7 +153,7 @@ class WelcomeController < ApplicationController
if local_challenges.present?
local_challenges.each do |local_challenge|
new_challenge = Challenge.new
new_challenge.attributes = local_challenge.attributes.dup.except("id","local_shixun_id","user_id")
new_challenge.attributes = local_challenge.attributes.dup.except("id","local_shixun_id","user_id", "test_set_score")
new_challenge.user_id = User.current.id
new_challenge.shixun_id = shixun.id
new_challenge.save!

Loading…
Cancel
Save