Merge branch 'dev_aliyun' of http://bdgit.educoder.net/Hjqreturn/educoder into dev_aliyun

dev_forum
cxt 6 years ago
commit eb508ca0b3

@ -529,6 +529,14 @@ class ShixunsController < ApplicationController
tip_show_exception("/myshixuns/#{current_myshixun.try(:identifier)}/reset_my_game")
end
if current_myshixun.repo_name.nil?
g = Gitlab.client
repo_name = g.project(current_myshixun.gpid).try(:path_with_namespace)
current_myshixun.update_column(:repo_name, repo_name)
end
# 如果存在实训,则直接进入实训
# 如果实训允许跳关传参params[:challenge_id]跳入具体的关卡
@current_task =

@ -20,7 +20,17 @@ module ElasticsearchAble
def highlight_options
{
fragment_size: EduSetting.get('es_highlight_fragment_size') || 30,
tag: '<span class="highlight">'
tag: '<span class="highlight">',
fields: {
name: { type: 'plain' },
subject: { type: 'plain' },
challenge_names: { type: 'plain' },
challenge_tag_names: { type: 'plain' },
description: { type: 'plain' },
subject_stages: { type: 'plain' },
content: { type: 'plain' },
descendants_contents: { type: 'plain' },
}
}
end

@ -0,0 +1,5 @@
class AddTsMemForOutputs < ActiveRecord::Migration[5.2]
def change
add_column :outputs, :ts_mem, :float
end
end

@ -0,0 +1,5 @@
class AddTsTimeForOutputs < ActiveRecord::Migration[5.2]
def change
add_column :outputs, :ts_time, :float
end
end
Loading…
Cancel
Save