From c9242139b407aa128cc068dd4b093d515d0cc385 Mon Sep 17 00:00:00 2001 From: guange Date: Tue, 10 Dec 2019 20:07:44 +0800 Subject: [PATCH] . --- app/controllers/jupyters_controller.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/controllers/jupyters_controller.rb b/app/controllers/jupyters_controller.rb index 37a1c3694..cd99b501e 100644 --- a/app/controllers/jupyters_controller.rb +++ b/app/controllers/jupyters_controller.rb @@ -39,7 +39,9 @@ class JupytersController < ApplicationController raise("实训云平台繁忙(繁忙等级:99)") end - render plain: "https://#{res['port']}.jupyter.educoder.net/notebooks/data/workspace/myshixun_#{tpiID}/01.ipynb" + repo_save_path = game.myshixun.repo_save_path + + render plain: "https://#{res['port']}.jupyter.educoder.net/notebooks/data/workspace/myshixun_#{tpiID}/#{repo_save_path}/01.ipynb" end