Skip to content

Commit

Permalink
[Release] Release 3.30.25
Browse files Browse the repository at this point in the history
Fix export xml
  • Loading branch information
ryanlee2014 committed Dec 7, 2023
1 parent e395ee0 commit 6525133
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "CUP-Online-Judge-BackEnd",
"author": "Ryan Lee <[email protected]>",
"homepage": "https://github.com/ryanlee2014",
"version": "3.30.24",
"version": "3.30.25",
"engines": {
"node": ">=12.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion src/manager/submission/SubmissionManager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 6525133

Please sign in to comment.