mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-11-08 14:48:41 +00:00
feat(problems/new_remote): provider name as initial tag
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
parent
bc18403973
commit
e9abdd53ae
@ -107,6 +107,13 @@ $new_remote_problem_form->handle = function (&$vdata) {
|
|||||||
]);
|
]);
|
||||||
dataNewProblem($id);
|
dataNewProblem($id);
|
||||||
|
|
||||||
|
DB::insert([
|
||||||
|
"insert into problems_tags",
|
||||||
|
"(problem_id, tag)",
|
||||||
|
"values",
|
||||||
|
DB::tuple([$id, $remote_provider['name']]),
|
||||||
|
]);
|
||||||
|
|
||||||
redirectTo("/problem/{$id}");
|
redirectTo("/problem/{$id}");
|
||||||
die();
|
die();
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user