This commit is contained in:
undefined committed 2020-05-03 18:22:31 +08:00
1 parent 627e64a901
commit 1df19a7aa9
17 files changed
+62 -105

No files matched your search

-1
View File
@@ -29,7 +29,6 @@ class ProblemImportHandler extends Handler {
if (pid) pdoc.pid = pid;
if (hidden) pdoc.hidden = true;
const _id = await problem.add(pdoc);
console.log(_id);
await problem.setTestdata(_id, testdata);
this.response.body = { pid: pid || _id };
this.response.redirect = `/p/${pid || _id}/settings`;