mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-25 21:58:41 +00:00
feat(problems/new_remote): difficulty
This commit is contained in:
parent
0918605c2b
commit
7fc962436e
@ -68,8 +68,8 @@ $new_remote_problem_form->handle = function (&$vdata) {
|
|||||||
|
|
||||||
DB::insert([
|
DB::insert([
|
||||||
"insert into problems",
|
"insert into problems",
|
||||||
"(title, uploader, is_hidden, submission_requirement, extra_config, type)",
|
"(title, uploader, is_hidden, submission_requirement, extra_config, difficulty, type)",
|
||||||
"values", DB::tuple([$data['title'], Auth::id(), 1, $enc_submission_requirement, $enc_extra_config, "remote"])
|
"values", DB::tuple([$data['title'], Auth::id(), 1, $enc_submission_requirement, $enc_extra_config, $data['difficulty'] ?: -1, "remote"])
|
||||||
]);
|
]);
|
||||||
|
|
||||||
$id = DB::insert_id();
|
$id = DB::insert_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user