Skip to content

Commit 2f083f4

Browse files
author
Jiati Le
committed
change behavior: when user specify a language and there are no accepted submission, program will return the most recent non accepted submission in this language
1 parent ebf5933 commit 2f083f4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/commands/submission.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function exportSubmission(argv, problem, cb) {
8989
});
9090

9191
// if no accepted, use the latest non-accepted one
92-
submission = submission || submissions[0];
92+
submission = submission || submissionInTargetType[0];
9393

9494
var filename = sprintf('%s/%d.%s.%s.%s%s',
9595
argv.outdir,

0 commit comments

Comments
 (0)