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