From a35ab7bfdfad07eb99b121753ba6b51605961a37 Mon Sep 17 00:00:00 2001 From: Baoshuo Date: Mon, 21 Mar 2022 11:10:54 +0800 Subject: [PATCH] fix(web/contest): group reg --- web/app/controllers/contest_members.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/web/app/controllers/contest_members.php b/web/app/controllers/contest_members.php index 095058a..999fe98 100644 --- a/web/app/controllers/contest_members.php +++ b/web/app/controllers/contest_members.php @@ -42,7 +42,7 @@ return; } - DB::query("replace into contests_registrants (username, user_rating, contest_id, has_participated) values ('{$user['username']}', {$user['rating']}, {$contest['id']}, 0)"); + DB::query("replace into contests_registrants (username, contest_id, has_participated) values ('{$user['username']}', {$contest['id']}, 0)"); updateContestPlayerNum($contest); }; @@ -74,7 +74,7 @@ $users = DB::selectAll("select b.username as username, b.rating as rating from groups_users a inner join user_info b on a.username = b.username where a.group_id = $group_id"); foreach ($users as $user) { - DB::query("replace into contests_registrants (username, user_rating, contest_id, has_participated) values ('{$user['username']}', {$user['rating']}, {$contest['id']}, 0)"); + DB::query("replace into contests_registrants (username, contest_id, has_participated) values ('{$user['username']}', {$contest['id']}, 0)"); } updateContestPlayerNum($contest);