diff --git a/app/controllers/games_controller.rb b/app/controllers/games_controller.rb index a5cb1ece3..938d42c2f 100644 --- a/app/controllers/games_controller.rb +++ b/app/controllers/games_controller.rb @@ -10,9 +10,6 @@ class GamesController < ApplicationController include GamesHelper include ApplicationHelper - - - def show uid_logger("--games show start") # 防止评测中途ajaxE被取消;3改成0是为了处理首次进入下一关的问题 @@ -91,7 +88,6 @@ class GamesController < ApplicationController end end - def jupyter # Jupyter没有challenge @myshixun = Myshixun.find_by_identifier params[:identifier] diff --git a/app/views/challenges/show.json.jbuilder b/app/views/challenges/show.json.jbuilder index cffe77ebb..fb86683b4 100644 --- a/app/views/challenges/show.json.jbuilder +++ b/app/views/challenges/show.json.jbuilder @@ -1,6 +1,6 @@ # 导航栏公共数据 json.partial! "challenges/top_common_data", shixun_identifier: @shixun.identifier -json.(@challenge, :id, :subject, :task_pass, :difficulty, :score, :exec_time) +json.(@challenge, :id, :subject, :task_pass, :difficulty, :score, :exec_time, :st) json.tags @challenge.challenge_tags.map(&:name)