修复比赛排行榜下载csv文件中题目无序的问题

This commit is contained in:
Himit_ZH 2021-12-12 22:18:20 +08:00
parent 544c386759
commit 10a18d3ac5
2 changed files with 2 additions and 2 deletions

View File

@ -113,7 +113,7 @@ public class ContestFileController {
// 获取题目displayID列表
QueryWrapper<ContestProblem> contestProblemQueryWrapper = new QueryWrapper<>();
contestProblemQueryWrapper.eq("cid", contest.getId()).select("display_id");
contestProblemQueryWrapper.eq("cid", contest.getId()).select("display_id").orderByAsc("display_id");
List<String> contestProblemDisplayIDList = contestProblemService.list(contestProblemQueryWrapper)
.stream().map(ContestProblem::getDisplayId).collect(Collectors.toList());

View File

@ -24,7 +24,7 @@ import java.util.concurrent.TimeUnit;
@Slf4j(topic = "hoj")
public class CodeForcesJudge implements RemoteJudgeStrategy {
public static final String IMAGE_HOST = "https://codeforces.com/";
public static final String IMAGE_HOST = "https://codeforces.ml/";
public static final String HOST = "https://codeforces.com/";
public static final String LOGIN_URL = "enter";
public static final String SUBMIT_URL = "problemset/submit";