From 507063f9ce36a7a206836f30123fed1d6c7ade17 Mon Sep 17 00:00:00 2001 From: Pasit Sangprachathanarak Date: Mon, 4 May 2026 15:35:13 +0800 Subject: [PATCH] fix more bugs in the user groups PR --- cms/server/contest/handlers/main.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cms/server/contest/handlers/main.py b/cms/server/contest/handlers/main.py index 2b3e60f160..012b835fc2 100644 --- a/cms/server/contest/handlers/main.py +++ b/cms/server/contest/handlers/main.py @@ -113,8 +113,9 @@ def post(self): # Create participation team = self._get_team() - participation = Participation(user=user, contest=self.contest, - team=team) + participation = Participation( + user=user, contest=self.contest, team=team, group=self.contest.main_group + ) self.sql_session.add(participation) self.sql_session.commit()