fps-importer: fix remote_oj import (#668)

pull/670/head
panda 12 months ago committed by GitHub
parent 52e0852fc5
commit ed396dc529
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -62,7 +62,7 @@ class FpsProblemImportHandler extends Handler {
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
memory: p.memory_limit[0]._ + p.memory_limit[0].$.unit,
};
if (p.remote_oj) {
if (p.remote_oj?.[0]) {
config.type = ProblemType.Remote;
config.subType = knownRemoteMapping[p.remote_oj[0]] || p.remote_oj[0];
config.target = p.remote_id[0];

Loading…
Cancel
Save