mirror of
https://gitcode.com/gh_mirrors/hy/Hydro.git
synced 2026-10-20 01:38:19 +08:00
fps-importer: fix remote_oj import (#668)
This commit is contained in:
1 parent
52e0852fc5
commit
ed396dc529
1 file changed
+1
-1
@@ -62,7 +62,7 @@ class FpsProblemImportHandler extends Handler {
|
|||||||
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
|
time: p.time_limit[0]._ + p.time_limit[0].$.unit,
|
||||||
memory: p.memory_limit[0]._ + p.memory_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.type = ProblemType.Remote;
|
||||||
config.subType = knownRemoteMapping[p.remote_oj[0]] || p.remote_oj[0];
|
config.subType = knownRemoteMapping[p.remote_oj[0]] || p.remote_oj[0];
|
||||||
config.target = p.remote_id[0];
|
config.target = p.remote_id[0];
|
||||||
|
|||||||
Reference in new issue
Block a user