|
|
|
@ -89,7 +89,7 @@ module JupyterService
|
|
|
|
|
raise("获取文件内容失败:#{response.status}")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
content = response.body
|
|
|
|
|
content = response.body.force_encoding('utf-8')
|
|
|
|
|
|
|
|
|
|
c = GitService.update_file(repo_path: shixun.repo_path,
|
|
|
|
|
file_path: "01.ipynb",
|
|
|
|
@ -117,7 +117,7 @@ module JupyterService
|
|
|
|
|
raise("获取文件内容失败:#{response.status}")
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
content = response.body
|
|
|
|
|
content = response.body.force_encoding('utf-8')
|
|
|
|
|
|
|
|
|
|
c = GitService.update_file(repo_path: myshixun.repo_path,
|
|
|
|
|
file_path: "01.ipynb",
|
|
|
|
|