mirror of
https://github.com/renbaoshuo/S2OJ.git
synced 2024-12-22 03:21:52 +00:00
chore(remote_judger/codeforces): include source code in result
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
36ff691a04
commit
d897a27801
@ -390,6 +390,16 @@ export default class CodeforcesProvider implements IBasicProvider {
|
||||
|
||||
if (body.waiting === 'true') continue;
|
||||
|
||||
let files = [];
|
||||
|
||||
if (body?.source) {
|
||||
files.push({
|
||||
name: 'answer.code',
|
||||
content: body.source,
|
||||
lang: '/',
|
||||
});
|
||||
}
|
||||
|
||||
const testCount = +body.testCount;
|
||||
const status =
|
||||
VERDICT[
|
||||
@ -450,6 +460,7 @@ export default class CodeforcesProvider implements IBasicProvider {
|
||||
time,
|
||||
memory,
|
||||
details,
|
||||
result: { files },
|
||||
});
|
||||
} catch (e) {
|
||||
logger.error(e);
|
||||
|
Loading…
Reference in New Issue
Block a user