1
0
mirror of https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git synced 2024-11-23 21:38:42 +00:00

feat: add sql for some database modifications

This commit is contained in:
Baoshuo Ren 2023-03-19 21:39:35 +08:00
parent 03cffac030
commit 4fd3006e34
Signed by: baoshuo
GPG Key ID: 00CB9680AB29F51A
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1,9 @@
ALTER TABLE
`problems`
ADD
`type` varchar(20) NOT NULL DEFAULT 'local';
ALTER TABLE
`problems`
ADD
KEY `type` (`type`);

View File

@ -49,6 +49,7 @@ function parseLuoguProblemData($problem) {
'time_limit' => (float)max($problem['limits']['time']) / 1000.0, 'time_limit' => (float)max($problem['limits']['time']) / 1000.0,
'memory_limit' => (float)max($problem['limits']['memory']) / 1024.0, 'memory_limit' => (float)max($problem['limits']['memory']) / 1024.0,
'statement' => renderMarkdown($statement), 'statement' => renderMarkdown($statement),
'statement_md' => $statement,
]; ];
} }