diff --git a/package.json b/package.json index 9bbda99..0977164 100644 --- a/package.json +++ b/package.json @@ -2,7 +2,7 @@ "name": "CUP-Online-Judge-BackEnd", "author": "Ryan Lee ", "homepage": "https://github.com/ryanlee2014", - "version": "3.30.24", + "version": "3.30.25", "engines": { "node": ">=12.0.0" }, diff --git a/src/manager/submission/SubmissionManager.ts b/src/manager/submission/SubmissionManager.ts index 11eca80..1b5a0a7 100644 --- a/src/manager/submission/SubmissionManager.ts +++ b/src/manager/submission/SubmissionManager.ts @@ -91,7 +91,7 @@ class SubmissionManager { } async getSolutionExportInfoByContestId(contestId: number | string) { - const exportInfoList: ExportSolutionInfo[] = await MySQLManager.execQuery("select * from (select * from solution where contest_id = ? and in_date > '2021-05-30')a left join source_code_user on source_code_user.solution_id = a.solution_id left join users on users.user_id = a.user_id", [contestId]); + const exportInfoList: ExportSolutionInfo[] = await MySQLManager.execQuery("select * from (select * from solution where contest_id = ?)a left join source_code_user on source_code_user.solution_id = a.solution_id left join users on users.user_id = a.user_id", [contestId]); exportInfoList.sort((a, b) => { if (a.user_id !== b.user_id) { return a.user_id > b.user_id ? 1 : a.user_id === b.user_id ? 0 : -1;