Skip to content

Commit

Permalink
sim: fix editing contest faling with error 500
Browse files Browse the repository at this point in the history
  • Loading branch information
varqox committed Sep 3, 2024
1 parent 4f0d546 commit 95af480
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subprojects/sim/src/web_server/old/contests_api.cc
Original file line number Diff line number Diff line change
Expand Up @@ -920,8 +920,8 @@ void Sim::api_contest_edit(
if (make_submitters_contestants) {
old_mysql
.prepare("INSERT IGNORE contest_users(user_id, contest_id, mode) "
"SELECT owner, ?, ? FROM submissions "
"WHERE contest_id=? GROUP BY owner")
"SELECT user_id, ?, ? FROM submissions "
"WHERE contest_id=? GROUP BY user_id")
.bind_and_execute(contest_id, EnumVal(OldContestUser::Mode::CONTESTANT), contest_id);
}

Expand Down

0 comments on commit 95af480

Please sign in to comment.