mirror of
https://github.com/renbaoshuo/UOJ-Luogu-RemoteJudge.git
synced 2024-12-24 03:31:59 +00:00
feat: add sql for some database modifications
This commit is contained in:
parent
03cffac030
commit
4fd3006e34
9
db/luogu_remote_judge.sql
Normal file
9
db/luogu_remote_judge.sql
Normal file
@ -0,0 +1,9 @@
|
||||
ALTER TABLE
|
||||
`problems`
|
||||
ADD
|
||||
`type` varchar(20) NOT NULL DEFAULT 'local';
|
||||
|
||||
ALTER TABLE
|
||||
`problems`
|
||||
ADD
|
||||
KEY `type` (`type`);
|
@ -49,6 +49,7 @@ function parseLuoguProblemData($problem) {
|
||||
'time_limit' => (float)max($problem['limits']['time']) / 1000.0,
|
||||
'memory_limit' => (float)max($problem['limits']['memory']) / 1024.0,
|
||||
'statement' => renderMarkdown($statement),
|
||||
'statement_md' => $statement,
|
||||
];
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user