mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-17 17:36:08 +08:00
core: 修复problem_edit中dump出错问题
This commit is contained in:
1 parent
79362ce849
commit
e7428c8f79
2 files changed
+3
-3
No files matched your search
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "hydrooj",
|
||||
"version": "2.13.3",
|
||||
"version": "2.13.4",
|
||||
"bin": "bin/hydrooj.js",
|
||||
"main": "dist/loader.js",
|
||||
"typings": "dist/loader.d.ts",
|
||||
|
||||
@@ -347,8 +347,8 @@ class ProblemSettingsHandler extends ProblemManageHandler {
|
||||
[this.pdoc.title, 'problem_detail', { pid }, true],
|
||||
['problem_settings', null],
|
||||
];
|
||||
if (this.response.body.config) {
|
||||
this.response.body.config = yaml.safeDump(this.response.body.config);
|
||||
if (this.response.body.pdoc.config) {
|
||||
this.response.body.pdoc.config = yaml.safeDump(this.response.body.pdoc.config);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user